OP#830 add bollean for toggling using lan server

This commit is contained in:
2026-10-02 16:03:13 +02:00
parent 281ce8ac26
commit 28879cbf65
3 changed files with 25 additions and 17 deletions

View File

@@ -63,7 +63,13 @@ log <%= @cy_loginfo %>
<% if @fqdn != @cy_server_fqdn -%>
# This is a time client configuration file
<% if @cy_use_lan_server -%>
server <%= @cy_server_fqdn %> iburst
<% else -%>
# Use public servers from the pool.ntp.org project.
<% @cy_conf_servers.each do |this_server| -%>
server <%= this_server %> iburst
<% end -%>
# Use NTP servers from DHCP.
sourcedir /run/chrony-dhcp