kopia lustrzana https://github.com/kartoza/docker-postgis
pull/246/head
rodzic
bcab87e3d8
commit
6b432add57
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
DATADIR="/var/lib/postgresql/12/main"
|
||||
DEFAULT_DATADIR="/var/lib/postgresql/12/main"
|
||||
ROOT_CONF="/etc/postgresql/12/main"
|
||||
PG_ENV="$ROOT_CONF/environment"
|
||||
CONF="$ROOT_CONF/postgresql.conf"
|
||||
|
@ -66,9 +66,9 @@ fi
|
|||
if [ -z "${POSTGRES_DBNAME}" ]; then
|
||||
POSTGRES_DBNAME=gis
|
||||
fi
|
||||
# If datadir is defined use this
|
||||
if [ -n "${DATADIR}" ]; then
|
||||
DATADIR=${DATADIR}
|
||||
# If datadir is not defined, then use this
|
||||
if [ -z "${DATADIR}" ]; then
|
||||
DATADIR=${DEFAULT_DATADIR}
|
||||
fi
|
||||
# RECREATE_DATADIR flag default value
|
||||
# Always assume that we don't want to recreate datadir if not explicitly defined
|
||||
|
|
Ładowanie…
Reference in New Issue