aboutsummaryrefslogtreecommitdiffstats
path: root/daily-psk-schedule
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-02-24 11:08:11 +0100
committerGravatar Christian Hesse <mail@eworm.de>2020-02-24 11:08:11 +0100
commit6e8f5f19f60ec3b82a63a19bad39793c8abe09fa (patch)
tree9680cbd7d9cbfde6a984d94124a3e4b1d0e457b2 /daily-psk-schedule
parent77ec3293f0803eacb7d6684b63f4add68ed767b9 (diff)
daily-psk-schedule: use $TimeIsSync
Diffstat (limited to 'daily-psk-schedule')
-rw-r--r--daily-psk-schedule8
1 files changed, 3 insertions, 5 deletions
diff --git a/daily-psk-schedule b/daily-psk-schedule
index 6c542a2..7e745e1 100644
--- a/daily-psk-schedule
+++ b/daily-psk-schedule
@@ -5,6 +5,7 @@
# schedule daily-psk on startup
:global MailServerIsUp;
+:global TimeIsSync;
:local Scheduler [ / system scheduler find where name="daily-psk-schedule" ];
@@ -16,11 +17,8 @@
:error "Warning: See log for details.";
}
- :if ([ / system ntp client get status ] != "synchronized") do={
- :if ([ / system resource get uptime ] > 5m) do={
- / system script run [ find where name="rotate-ntp" ];
- }
- :log warning "Time is not yet synchronized from ntp.";
+ :if ($TimeIsSync = false) do={
+ :log warning "Time is not yet synchronized.";
:error "Warning: See log for details.";
}