deemix-docker/root/etc/services.d/deemix/run
2022-03-11 00:46:43 +01:00

27 lines
557 B
Plaintext

#!/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 Deemix"
s6-setuidgid abc /deemix-server