Fix installing unaccent extension - specify databases

This commit is contained in:
Cédric Vanet
2015-03-06 10:34:06 +01:00
parent 9cca232ba0
commit defe9ff649
+1 -1
View File
@@ -124,7 +124,7 @@ if [ -n "${DB_NAME}" ]; then
if [ "${DB_UNACCENT}" == "true" ]; then
echo "Installing unaccent extension..."
echo "CREATE EXTENSION IF NOT EXISTS unaccent;" | \
sudo -u postgres -H ${PG_BINDIR}/postgres --single \
sudo -u postgres -H ${PG_BINDIR}/postgres --single ${db} \
-D ${PG_DATADIR} -c config_file=${PG_CONFDIR}/postgresql.conf >/dev/null
fi