mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-20 12:20:06 +08:00
entrypoint.sh: create log dir
This commit is contained in:
+2
-1
@@ -4,7 +4,8 @@ MAINTAINER sameer@damagehead.com
|
|||||||
ENV PG_VERSION=9.4 \
|
ENV PG_VERSION=9.4 \
|
||||||
PG_USER=postgres \
|
PG_USER=postgres \
|
||||||
PG_HOME=/var/lib/postgresql \
|
PG_HOME=/var/lib/postgresql \
|
||||||
PG_RUNDIR=/run/postgresql
|
PG_RUNDIR=/run/postgresql \
|
||||||
|
PG_LOGDIR=/var/log/postgresql
|
||||||
|
|
||||||
ENV PG_CONFDIR="/etc/postgresql/${PG_VERSION}/main" \
|
ENV PG_CONFDIR="/etc/postgresql/${PG_VERSION}/main" \
|
||||||
PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin" \
|
PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin" \
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ if [[ ${USERMAP_UID} != ${USERMAP_ORIG_UID} ]] || [[ ${USERMAP_GID} != ${USERMAP
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
create_data_dir
|
create_data_dir
|
||||||
|
create_log_dir
|
||||||
create_run_dir
|
create_run_dir
|
||||||
|
|
||||||
# fix ownership of ${PG_CONFDIR} (may be necessary if USERMAP_* was set)
|
# fix ownership of ${PG_CONFDIR} (may be necessary if USERMAP_* was set)
|
||||||
|
|||||||
Reference in New Issue
Block a user