From a12b9478d7434dbd18e25151d37b0acababc851c Mon Sep 17 00:00:00 2001 From: James Mills Date: Fri, 25 Mar 2022 21:42:46 +1000 Subject: [PATCH] Fix Docker images entrypoint to configure DATA and STORE env vars by default if not set to sensible valeus --- .dockerfiles/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.dockerfiles/entrypoint.sh b/.dockerfiles/entrypoint.sh index 2a3a55b..0059b13 100755 --- a/.dockerfiles/entrypoint.sh +++ b/.dockerfiles/entrypoint.sh @@ -4,8 +4,8 @@ [ -n "${PGID}" ] && groupmod -g "${PGID}" salty printf "Configuring salty-chat ..." -#[ -z "${DATA}" ] && DATA="/data" -#[ -z "${STORE}" ] && STORE="bitcask:///data/yarn.db" +[ -z "${DATA}" ] && DATA="/data" +[ -z "${STORE}" ] && STORE="bitcask:///data/saltyim.db" #[ -z "${OPEN_REGISTRATIONS}" ] && OPEN_REGISTRATIONS=true #[ -z "${OPEN_PROFILES}" ] && OPEN_PROFILES=true #[ -z "${COOKIE_SECRET}" ] && COOKIE_SECRET="$(random_string)"