mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
firewall: only retry in cron mode
This commit is contained in:
parent
ef1dc387c4
commit
ecace09a31
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user