summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f3fa1e19d..ae385d85e 100644
--- a/Makefile
+++ b/Makefile
@@ -67,7 +67,13 @@ create-config: install-perl-modules
[ -d ${FREESIDE_CONF} ] || mkdir ${FREESIDE_CONF}
chown freeside ${FREESIDE_CONF}
+ touch ${FREESIDE_CONF}/secrets
+ chown freeside ${FREESIDE_CONF}/secrets
+ chmod 600 ${FREESIDE_CONF}/secrets
+
echo -e "${DATASOURCE}\n${DB_USER}\n${DB_PASSWORD}" >${FREESIDE_CONF}/secrets
+ chmod 600 ${FREESIDE_CONF}/secrets
+ chown freeside ${FREESIDE_CONF}/secrets
[ -d "${FREESIDE_CONF}/conf.${DATASOURCE}" ] \
|| mkdir "${FREESIDE_CONF}/conf.${DATASOURCE}"