From f6328158edbbe4597c092f5d909a3164b7936226 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 16 Mar 2020 21:34:46 +0100 Subject: [PATCH] Add owner and mode for install in CKAN and CC --- lxc-apps/ckan/install.sh | 34 +++++++++++++++---------------- lxc-apps/crisiscleanup/install.sh | 14 ++++++------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/lxc-apps/ckan/install.sh b/lxc-apps/ckan/install.sh index 6bf30e0..2b28400 100755 --- a/lxc-apps/ckan/install.sh +++ b/lxc-apps/ckan/install.sh @@ -16,8 +16,8 @@ install -o 105432 -g 105432 -m 700 -d ${POSTGRES_DATA} spoc-container exec ckan-postgres -- initdb -D /var/lib/postgresql # Configure Postgres -install postgres_data/postgresql.conf ${POSTGRES_DATA}/postgresql.conf -install postgres_data/pg_hba.conf ${POSTGRES_DATA}/pg_hba.conf +install -o 105432 -g 105432 -m 600 postgres_data/postgresql.conf ${POSTGRES_DATA}/postgresql.conf +install -o 105432 -g 105432 -m 600 postgres_data/pg_hba.conf ${POSTGRES_DATA}/pg_hba.conf # Create database export CKAN_PWD=$(head -c 18 /dev/urandom | base64 | tr -d '+/=') @@ -26,36 +26,36 @@ spoc-container start ckan-postgres envsubst