2020-06-05 19:25:27 +00:00
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
|
|
|
# install deemix
|
|
|
|
|
|
|
|
if [ -f "/deemix/updated" ]; then
|
|
|
|
echo "[cont-init.d] Installing"
|
|
|
|
cd /deemix
|
2020-08-23 11:02:27 +00:00
|
|
|
sed -i '/^pyqt/d' requirements.txt
|
2020-06-05 19:25:27 +00:00
|
|
|
pip3 install -U -r requirements.txt --quiet --disable-pip-version-check
|
|
|
|
rm /deemix/updated
|
|
|
|
echo "[cont-init.d] Installation done"
|
|
|
|
fi
|
|
|
|
|
2020-09-04 17:49:56 +00:00
|
|
|
# check for arl environment variable. if it is set, create the arl file.
|
|
|
|
# if the arl was previously set but is out of date, update the file with the arl from the env variable
|
2020-06-05 19:25:27 +00:00
|
|
|
|
|
|
|
if [ ${#ARL} -gt 10 ]; then
|
2020-09-04 17:49:56 +00:00
|
|
|
OLDARL=$(cat /config/.arl)
|
|
|
|
if $ARL -ne $OLDARL; then
|
|
|
|
echo "[cont-init.d] !!! ARL from environment variable does not match current ARL. Using environment variable. !!!"
|
|
|
|
echo "[cont-init.d] !!! Please update your ARL in the variable instead of the webinterface or remove the ARL from the container call. !!!"
|
|
|
|
printf $ARL > /config/.arl
|
|
|
|
fi
|
2020-06-05 19:25:27 +00:00
|
|
|
fi
|