mirror of
https://gitlab.com/Bockiii/deemix-docker.git
synced 2024-08-30 17:32:18 +00:00
fixed arl updater from environment variable
This commit is contained in:
parent
ae39231bf0
commit
4270f02fc7
@ -11,9 +11,14 @@ if [ -f "/deemix/updated" ]; then
|
||||
echo "[cont-init.d] Installation done"
|
||||
fi
|
||||
|
||||
# check for arl environment variable. if it is set, create the arl file
|
||||
# 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
|
||||
|
||||
if [ ${#ARL} -gt 10 ]; then
|
||||
echo "[cont-init.d] Using ARL token from environment variable"
|
||||
printf $ARL > /config/.arl
|
||||
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
|
||||
fi
|
Loading…
Reference in New Issue
Block a user