Tidy up the Docker image's entrypoint

xuu/aahha
James Mills 7 months ago
parent 38a6d71644
commit 61d0c5bef8
  1. 7
      .dockerfiles/entrypoint.sh

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

Loading…
Cancel
Save