File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 9191 ./" ${GAMESERVER} " sponsor
9292fi
9393
94- echo -e " "
95- echo -e " Starting Update Checks"
96- echo -e " ================================="
97- echo -e " */${UPDATE_CHECK} * * * * /app/${GAMESERVER} update > /dev/null 2>&1" | crontab -
98- echo -e " update will check every ${UPDATE_CHECK} minutes"
94+ if [ -n " ${UPDATE_CHECK} " ] && [ " ${UPDATE_CHECK} " != " 0" ]; then
95+ echo -e " "
96+ echo -e " Starting Update Checks"
97+ echo -e " ================================="
98+ echo -e " */${UPDATE_CHECK} * * * * /app/${GAMESERVER} update > /dev/null 2>&1" | crontab -
99+ echo -e " update will check every ${UPDATE_CHECK} minutes"
100+ else
101+ echo -e " "
102+ echo -e " Update checks are disabled"
103+ echo -e " ================================="
104+ fi
99105
100106# Update or validate game server
101107if [ -z " ${install} " ]; then
You can’t perform that action at this time.
0 commit comments