deemix-docker/root/etc/services.d/deemix/run

18 lines
388 B
Plaintext
Raw Normal View History

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
if [ -f "/config/.arl" ]; then
echo "[services.d] Starting with ARL"
exec \
2020-06-11 18:45:28 +00:00
s6-setuidgid abc python3 /deemix/server.py 6595 --serverwide-arl --host 0.0.0.0
2020-06-05 19:25:27 +00:00
else
echo "[services.d] Starting without ARL"
exec \
2020-06-11 18:45:28 +00:00
s6-setuidgid abc python3 /deemix/server.py 6595 --host 0.0.0.0
2020-06-05 19:25:27 +00:00
fi