mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-07-04 20:06:57 +08:00
DB_LOCALE config parameter renamed to PG_LOCALE
This commit is contained in:
+4
-4
@@ -25,9 +25,9 @@ map_uidgid() {
|
||||
}
|
||||
|
||||
locale_gen() {
|
||||
if [[ $DB_LOCALE != C ]]; then
|
||||
echo "Generating locale \"${DB_LOCALE}\"..."
|
||||
locale-gen ${DB_LOCALE} >/dev/null
|
||||
if [[ $PG_LOCALE != C ]]; then
|
||||
echo "Generating locale \"${PG_LOCALE}\"..."
|
||||
locale-gen ${PG_LOCALE} >/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ initialize_database() {
|
||||
fi
|
||||
|
||||
exec_as_postgres ${PG_BINDIR}/initdb --pgdata=${PG_DATADIR} \
|
||||
--username=${PG_USER} --encoding=unicode --locale=${DB_LOCALE} --auth=trust >/dev/null
|
||||
--username=${PG_USER} --encoding=unicode --locale=${PG_LOCALE} --auth=trust >/dev/null
|
||||
|
||||
if [[ -n ${PG_OLD_VERSION} ]]; then
|
||||
PG_OLD_BINDIR=/usr/lib/postgresql/${PG_OLD_VERSION}/bin
|
||||
|
||||
Reference in New Issue
Block a user