aboutsummaryrefslogtreecommitdiffstats
path: root/rotate-ntp
diff options
context:
space:
mode:
Diffstat (limited to 'rotate-ntp')
-rw-r--r--rotate-ntp10
1 files changed, 5 insertions, 5 deletions
diff --git a/rotate-ntp b/rotate-ntp
index fc9aeea..f342f98 100644
--- a/rotate-ntp
+++ b/rotate-ntp
@@ -4,14 +4,14 @@
#
# rotate the ntp servers
-:global "ntp-pool";
+:global NtpPool;
-:local ntp1 [ :resolve ("0." . $"ntp-pool") ];
-:local ntp2 [ :resolve ("1." . $"ntp-pool") ];
+:local Ntp1 [ :resolve ("0." . $NtpPool) ];
+:local Ntp2 [ :resolve ("1." . $NtpPool) ];
: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;
+:log info ("Updating NTP servers to " . $Ntp1 . " and " . $Ntp2);
+/ system ntp client set primary-ntp=$Ntp1 secondary-ntp=$Ntp2;