deemix-docker/root/etc/cont-init.d/40-install
Henning Bocklage 440d8319bf initial commit
2020-06-05 21:25:27 +02:00

18 lines
480 B
Plaintext

#!/usr/bin/with-contenv bash
# install deemix
if [ -f "/deemix/updated" ]; then
echo "[cont-init.d] Installing"
cd /deemix
pip3 install -U -r requirements.txt --quiet --disable-pip-version-check
rm /deemix/updated
echo "[cont-init.d] Installation done"
fi
# check for arl environment variable. if it is set, create the arl file
if [ ${#ARL} -gt 10 ]; then
echo "[cont-init.d] Using ARL token from environment variable"
printf $ARL > /config/.arl
fi