Fix display of ntp update when it changes (#1031)

This commit is contained in:
Tim Wilkinson 2023-12-18 16:48:02 -08:00 committed by GitHub
parent 913e9e9ee1
commit 8f5e87eb11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -681,6 +681,7 @@ if parms.button_save then
if not nixio.fs.stat("/etc/cron.daily/update-clock") then
if nixio.fs.stat("/etc/cron.hourly/update-clock") then
os.execute("mv /etc/cron.hourly/update-clock /etc/cron.daily/update-clock")
ntp_period = parms.ntp_period
else
err("update-clock script not found")
end
@ -689,6 +690,7 @@ if parms.button_save then
if not nixio.fs.stat("/etc/cron.hourly/update-clock") then
if nixio.fs.stat("/etc/cron.daily/update-clock") then
os.execute("mv /etc/cron.daily/update-clock /etc/cron.hourly/update-clock")
ntp_period = parms.ntp_period
else
err("update-clock script not found")
end