summaryrefslogtreecommitdiffstats
path: root/time_wizard/scripts/NTPConf.pm
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2003-03-11 14:15:54 +0000
committerFlorent Villard <warly@mandriva.com>2003-03-11 14:15:54 +0000
commit4094941cf2866e5778d1fdff38a05d6dd1acfc2b (patch)
treeec14d1e1844a52af1def5cadfef601ecf988dc15 /time_wizard/scripts/NTPConf.pm
parent98e2a162a8f786f157f774ac7aae07c1aafadc0e (diff)
downloaddrakwizard-4094941cf2866e5778d1fdff38a05d6dd1acfc2b.tar
drakwizard-4094941cf2866e5778d1fdff38a05d6dd1acfc2b.tar.gz
drakwizard-4094941cf2866e5778d1fdff38a05d6dd1acfc2b.tar.bz2
drakwizard-4094941cf2866e5778d1fdff38a05d6dd1acfc2b.tar.xz
drakwizard-4094941cf2866e5778d1fdff38a05d6dd1acfc2b.zip
add server in ntp.conf in time wizard
Diffstat (limited to 'time_wizard/scripts/NTPConf.pm')
-rw-r--r--time_wizard/scripts/NTPConf.pm1
1 files changed, 1 insertions, 0 deletions
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) {