From 9144f48000340989824cba31ba73de5e490b916c Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Tue, 16 Sep 2025 12:10:30 +0200 Subject: [PATCH] adapt to modern ntp.conf file used by ntpsec --- modules/conf_ntp.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/conf_ntp.sh b/modules/conf_ntp.sh index de98551..45caa48 100644 --- a/modules/conf_ntp.sh +++ b/modules/conf_ntp.sh @@ -39,7 +39,11 @@ conf_ntp() prnt I "Installing NTP configuration file..." local dest="${conf_file}.work" backup_dist "$conf_file" - install_file ntp.conf "$dest" + if [[ -s $NTP_SERV ]]; then + install_file ${NTP_SERV}.conf "$dest" + else + install_file ntp.conf "$dest" + fi tag_file "$dest" local line="" for srv in $NTP_SERVERS; do