mirror of
https://gitlab.com/Bockiii/deemix-docker.git
synced 2024-08-30 17:32:18 +00:00
40-install: fix missing brackets
Without the brackets, the shell will try to execute "$ARL" as if it were a program, giving the error: 123456789: command not found
This commit is contained in:
parent
18eef74989
commit
197300b6c1
@ -14,8 +14,9 @@ fi
|
||||
# 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
|
||||
OLDARL=$(cat /config/.arl)
|
||||
if $ARL -ne $OLDARL; then
|
||||
# this file might not exist; happens when the users runs for the first time
|
||||
OLDARL=$(cat /config/.arl 2>/dev/null || echo 0) # ignore if the file doesn't exist
|
||||
if [ "$ARL" != "$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
|
||||
|
Loading…
Reference in New Issue
Block a user