deemix-docker/root/etc/cont-init.d/40-install
2020-08-23 13:02:27 +02:00

19 lines
519 B
Plaintext

#!/usr/bin/with-contenv bash
# install deemix
if [ -f "/deemix/updated" ]; then
echo "[cont-init.d] Installing"
cd /deemix
sed -i '/^pyqt/d' requirements.txt
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