summaryrefslogtreecommitdiffstats
path: root/time_wizard/scripts/NTPConf.pm
diff options
context:
space:
mode:
authorArnaud Desmons <adesmons@mandriva.com>2002-09-06 11:45:55 +0000
committerArnaud Desmons <adesmons@mandriva.com>2002-09-06 11:45:55 +0000
commit0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f (patch)
treec7e053bca1d811011325cafa76822cc0f7fffa0a /time_wizard/scripts/NTPConf.pm
parentbff7cc48de9bf6f28b01c0580cd97fb0bd20d4ca (diff)
downloaddrakwizard-0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f.tar
drakwizard-0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f.tar.gz
drakwizard-0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f.tar.bz2
drakwizard-0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f.tar.xz
drakwizard-0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f.zip
test before copying step-tickers
Diffstat (limited to 'time_wizard/scripts/NTPConf.pm')
-rw-r--r--time_wizard/scripts/NTPConf.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/time_wizard/scripts/NTPConf.pm b/time_wizard/scripts/NTPConf.pm
index b03664d3..effa87d6 100644
--- a/time_wizard/scripts/NTPConf.pm
+++ b/time_wizard/scripts/NTPConf.pm
@@ -51,7 +51,7 @@ sub do_it {
print NEW "ARC=false\n";
close NEW or die "can not close $file: $!";
MDK::Common::cp_af("/usr/share/zoneinfo/$ENV{wiz_timezone}", "/etc/localtime");
- MDK::Common::cp_af("/etc/ntp/step-tickers", "/etc/ntp/step-tickers.orig");
+ -f "/etc/ntp/step-tickers" and MDK::Common::cp_af("/etc/ntp/step-tickers", "/etc/ntp/step-tickers.orig");
open(NEW, "> /etc/ntp/step-tickers") or die "can not open /etc/ntp/step-tickers: $!";
print NEW $ENV{server1}."\n";
print NEW $ENV{server2}."\n";