summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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";