entrypoint.sh: create log dir

This commit is contained in:
Sameer Naik
2015-08-16 12:25:39 +05:30
parent fd3794fa03
commit 306f915aaf
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -4,7 +4,8 @@ MAINTAINER sameer@damagehead.com
ENV PG_VERSION=9.4 \
PG_USER=postgres \
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" \
PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin" \
+1
View File
@@ -55,6 +55,7 @@ if [[ ${USERMAP_UID} != ${USERMAP_ORIG_UID} ]] || [[ ${USERMAP_GID} != ${USERMAP
fi
create_data_dir
create_log_dir
create_run_dir
# fix ownership of ${PG_CONFDIR} (may be necessary if USERMAP_* was set)