6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-28 17:51:04 +00:00

Fix Docker images entrypoint to configure DATA and STORE env vars by default if not set to sensible valeus

This commit is contained in:
James Mills 2022-03-25 21:42:46 +10:00
parent 3b300f09fd
commit a12b9478d7

@ -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)"