mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-12 12:00:50 +08:00
Fix installing unaccent extension - specify databases
This commit is contained in:
@@ -124,7 +124,7 @@ if [ -n "${DB_NAME}" ]; then
|
|||||||
if [ "${DB_UNACCENT}" == "true" ]; then
|
if [ "${DB_UNACCENT}" == "true" ]; then
|
||||||
echo "Installing unaccent extension..."
|
echo "Installing unaccent extension..."
|
||||||
echo "CREATE EXTENSION IF NOT EXISTS unaccent;" | \
|
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
|
-D ${PG_DATADIR} -c config_file=${PG_CONFDIR}/postgresql.conf >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user