From 6c28ab2fd84c5e9d15736401ec00aad951afa2a1 Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Wed, 7 Jun 2023 19:35:17 +0100 Subject: [PATCH] ts-host-install: fix ntp.conf path on bookworm MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Anthony PERARD Acked-by: Roger Pau Monné --- ts-host-install | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ts-host-install b/ts-host-install index f79a1be..61433e6 100755 --- a/ts-host-install +++ b/ts-host-install @@ -151,7 +151,13 @@ END my $ntpserver = get_target_property($ho, 'NtpServer'); if ($ntpserver) { - target_editfile_root($ho, '/etc/ntp.conf', sub { + my $ntpconf_path; + if ($ho->{Suite} =~ m/lenny|squeeze|wheezy|jessie|stretch|buster/) { + $ntpconf_path = '/etc/ntp.conf'; + } else { + $ntpconf_path = '/etc/ntpsec/ntp.conf'; + } + target_editfile_root($ho, $ntpconf_path, sub { my $done= 0; while () { if (m/^server\b|^pool\b\s/) { -- 2.39.5