From 76dbc98013c494e90b91479ab5c1210213ca9e57 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 18 Sep 2018 23:46:24 +0200 Subject: rotate-ntp: warn if ntp client is disabled --- rotate-ntp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rotate-ntp') 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; -- cgit v1.2.3-54-g00ecf