deemix-docker/root/etc/services.d/deemix/run
2020-06-12 23:57:48 +02:00

18 lines
388 B
Plaintext

#!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
cd /deemix
HOME=/deem
if [ -f "/config/.arl" ]; then
echo "[services.d] Starting with ARL"
exec \
s6-setuidgid abc python3 /deemix/server.py 6595 --serverwide-arl --host 0.0.0.0
else
echo "[services.d] Starting without ARL"
exec \
s6-setuidgid abc python3 /deemix/server.py 6595 --host 0.0.0.0
fi