aboutsummaryrefslogtreecommitdiffstats
path: root/rotate-ntp
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-09-18 23:46:24 +0200
committerGravatar Christian Hesse <mail@eworm.de>2018-09-18 23:46:24 +0200
commit76dbc98013c494e90b91479ab5c1210213ca9e57 (patch)
tree2694c21431f0220869ef09bf81576313176618fd /rotate-ntp
parent74d59641e69a255e9790ff57e81c3f287154f5e6 (diff)
rotate-ntp: warn if ntp client is disabled
Diffstat (limited to 'rotate-ntp')
-rw-r--r--rotate-ntp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rotate-ntp b/rotate-ntp
index 8089ef6..5d532e9 100644
--- a/rotate-ntp
+++ b/rotate-ntp
@@ -9,5 +9,9 @@
:local ntp1 [ :resolve ("0." . $"ntp-pool") ];
:local ntp2 [ :resolve ("1." . $"ntp-pool") ];
+:if ([ / system ntp client get enabled ] != true) do={
+ :log warning "NTP client is not enabled!";
+}
+
:log info ("Updating NTP servers to " . $ntp1 . " and " . $ntp2);
/ system ntp client set primary-ntp=$ntp1 secondary-ntp=$ntp2;