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

27 lines
559 B
Plaintext
Raw Permalink Normal View History

2023-12-21 22:44:50 +00:00
#!/usr/bin/with-contenv bash
UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
cd /
# Check if an alternative port was defined, set it to it or default
if [ ! -z ${INTPORT} ]; then
port=$INTPORT
else
port=6595
fi
# Check if the ARL environment var is set to anything. This enables legacy behavior
if [ ! -z ${ARL} ]; then
export DEEMIX_SINGLE_USER=true
fi
export DEEMIX_DATA_DIR=/config/
export DEEMIX_MUSIC_DIR=/downloads/
export DEEMIX_SERVER_PORT=$port
export DEEMIX_HOST=0.0.0.0
echo "[services.d] Starting Deemixer"
s6-setuidgid abc /deemix-server