Added plpythonu

This commit is contained in:
antoniocarlon 2018-06-13 13:08:50 +02:00
parent 865c1a38c3
commit f148057e45

View File

@ -32,7 +32,7 @@ apt-get -y install postgresql-${PGSQL_VERSION} postgresql-${PGSQL_VERSION}-postg
# Configure it to accept local connections from postgres # Configure it to accept local connections from postgres
echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" > /etc/postgresql/${PGSQL_VERSION}/main/pg_hba.conf echo -e "# TYPE DATABASE USER ADDRESS METHOD \nlocal all postgres trust\nlocal all all trust\nhost all all 127.0.0.1/32 trust" > /etc/postgresql/${PGSQL_VERSION}/main/pg_hba.conf
psql -c "CREATE LANGUAGE plpythonu;" psql -U postgres -c "CREATE LANGUAGE plpythonu;"
# Restart PostgreSQL # Restart PostgreSQL
/etc/init.d/postgresql restart ${PGSQL_VERSION} /etc/init.d/postgresql restart ${PGSQL_VERSION}