Tidy up the Docker image's entrypoint
This commit is contained in:
parent
38a6d71644
commit
61d0c5bef8
|
@ -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…
Reference in New Issue