diff --git a/debian/files/Install_Script.sh b/debian/files/Install_Script.sh index 3659e23..0e34293 100644 --- a/debian/files/Install_Script.sh +++ b/debian/files/Install_Script.sh @@ -9,6 +9,11 @@ # CHANGELOG=/ts3server/CHANGELOG_$TS_VERSION # echo "Latest server version from Teamspeak:$TS_VERSION." +: "${AUTO_UPDATE:=true}" +AUTO_UPDATE=$(echo "$AUTO_UPDATE" | tr '[:upper:]' '[:lower:]') + +echo "DEBUG: Variable hex output is: $(echo -n "$AUTO_UPDATE" | xxd -p)" + if [ "$AUTO_UPDATE" = "true" ]; then echo "INFO ! Teamspeak will auto update to the latest version." echo "Checking server version from Teamspeak." @@ -17,7 +22,6 @@ if [ "$AUTO_UPDATE" = "true" ]; then echo "Latest server version from Teamspeak:$TS_VERSION." elif [ "$AUTO_UPDATE" = "false" ]; then echo "INFO ! The version you selected will be installed." -fi else echo "ERROR ! AUTO_UPDATE must be set to true or false on first run" sleep infinity