2020-06-05 19:25:27 +00:00
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
2020-06-12 21:57:48 +00:00
|
|
|
UMASK_SET=${UMASK_SET:-022}
|
|
|
|
umask "$UMASK_SET"
|
|
|
|
|
2020-06-05 19:25:27 +00:00
|
|
|
cd /deemix
|
|
|
|
|
|
|
|
HOME=/deem
|
|
|
|
|
2021-04-12 13:10:42 +00:00
|
|
|
printf '%-50s %2s %-5s \n' "[cont-init.d] Package Build Date" ":" "$(cat /deemix/packagedate)"
|
|
|
|
|
2021-03-29 08:58:34 +00:00
|
|
|
if [ ! -z ${INTPORT} ]; then
|
|
|
|
port=$INTPORT
|
|
|
|
else
|
|
|
|
port=6595
|
|
|
|
fi
|
|
|
|
|
2020-06-05 19:25:27 +00:00
|
|
|
if [ -f "/config/.arl" ]; then
|
|
|
|
echo "[services.d] Starting with ARL"
|
|
|
|
exec \
|
2021-03-29 08:58:34 +00:00
|
|
|
s6-setuidgid abc python3 /deemix/server.py $port --serverwide-arl --host 0.0.0.0
|
2020-06-05 19:25:27 +00:00
|
|
|
else
|
|
|
|
echo "[services.d] Starting without ARL"
|
|
|
|
exec \
|
2021-03-29 08:58:34 +00:00
|
|
|
s6-setuidgid abc python3 /deemix/server.py $port --host 0.0.0.0
|
|
|
|
fi
|