From 4094941cf2866e5778d1fdff38a05d6dd1acfc2b Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Tue, 11 Mar 2003 14:15:54 +0000 Subject: add server in ntp.conf in time wizard --- time_wizard/scripts/NTPConf.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'time_wizard') diff --git a/time_wizard/scripts/NTPConf.pm b/time_wizard/scripts/NTPConf.pm index 77fbe867..efcc838d 100644 --- a/time_wizard/scripts/NTPConf.pm +++ b/time_wizard/scripts/NTPConf.pm @@ -55,6 +55,7 @@ sub do_it { print NEW $ENV{server1}."\n"; print NEW $ENV{server2}."\n"; close NEW or die "can not close /etc/ntp/step-tickers: $!"; + substInFile { s/(# server clock.via.net)/$1\nserver $ENV{server1}/ } '/etc/ntp.conf' if -f '/etc/ntp.conf'; standalone::explanations("Wrote /etc/ntp/step-tickers, starting services"); my @services = qw(crond atd ntpd); foreach (@services) { -- cgit v1.2.1