firewall: only retry in cron mode

This commit is contained in:
Franco Fichtner 2017-05-03 06:06:52 +02:00
parent ef1dc387c4
commit ecace09a31

View File

@ -44,7 +44,11 @@ while [ ${RETRIES} -gt 0 ]; do
break
fi
RETRIES=$((RETRIES-1))
if [ "${COMMAND}" = "cron" ]; then
RETRIES=$((RETRIES - 1))
else
RETRIES=0
fi
done
if [ ${RETRIES} -eq 0 ]; then