global-functions: $WaitTimeSync: failing rotate-ntp is not fatal

Resolving ntp servers fais if internet connectivity is not established.
So this is not fatal, we want to catch error and fall through, then
continue.
This commit is contained in:
Christian Hesse 2020-05-13 14:07:12 +02:00
parent 9e4c6d70a9
commit 12a29d076f

View file

@ -731,7 +731,11 @@
:while ([ $TimeIsSync ] = false) do={
:if ([ / system script print count-only where name="rotate-ntp" ] > 0 && \
[ :tostr [ / system resource get uptime ] ] ~ "00\$") do={
/ system script run rotate-ntp;
:do {
/ system script run rotate-ntp;
} on-error={
# catch error and fall through
}
}
:delay 1s;
}