Tidy up the Docker image's entrypoint

This commit is contained in:
James Mills 2022-03-27 00:58:28 +10:00
parent 38a6d71644
commit 61d0c5bef8

View File

@ -6,13 +6,8 @@
printf "Configuring salty-chat ..."
[ -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)"
#[ -z "${MAGICLINK_SECRET}" ] && MAGICLINK_SECRET="$(random_string)"
#[ -z "${API_SIGNING_KEY}" ] && API_SIGNING_KEY="$(random_string)"
export DATA STORE OPEN_REGISTRATIONS OPEN_PROFILES COOKIE_SECRET MAGICLINK_SECRET API_SIGNING_KEY
export DATA STORE
printf "Switching UID=%s and GID=%s\n" "${PUID}" "${PGID}"
exec su-exec salty:ysalty "$@"