From 9ca966eb1faa4ed9426dc712d2cb94ee47f3631b Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sun, 16 Aug 2015 12:47:44 +0530 Subject: [PATCH] entrypoint.sh: `chown` recursively --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 30d8f85..ab65d7b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -39,20 +39,20 @@ map_postgres_uid() { create_data_dir() { mkdir -p ${PG_HOME} chmod -R 0700 ${PG_HOME} - chown ${PG_USER}:${PG_USER} ${PG_HOME} + chown -R ${PG_USER}:${PG_USER} ${PG_HOME} } create_log_dir() { mkdir -p ${PG_LOGDIR} chmod -R 1775 ${PG_LOGDIR} - chown root:${PG_USER} ${PG_LOGDIR} + chown -R root:${PG_USER} ${PG_LOGDIR} } create_run_dir() { mkdir -p ${PG_RUNDIR} ${PG_RUNDIR}/${PG_VERSION}-main.pg_stat_tmp chmod -R 0755 ${PG_RUNDIR} chmod g+s ${PG_RUNDIR} - chown ${PG_USER}:${PG_USER} ${PG_RUNDIR} + chown -R ${PG_USER}:${PG_USER} ${PG_RUNDIR} } map_postgres_uid