diff options
author | Christian Hesse <mail@eworm.de> | 2018-09-18 23:46:24 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-09-18 23:46:24 +0200 |
commit | 76dbc98013c494e90b91479ab5c1210213ca9e57 (patch) | |
tree | 2694c21431f0220869ef09bf81576313176618fd /rotate-ntp | |
parent | 74d59641e69a255e9790ff57e81c3f287154f5e6 (diff) |
rotate-ntp: warn if ntp client is disabled
Diffstat (limited to 'rotate-ntp')
-rw-r--r-- | rotate-ntp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |