From 0b14b15828a3d2f65ef2efa5ea91b7aa47ec408f Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Fri, 6 Sep 2002 11:45:55 +0000 Subject: test before copying step-tickers --- time_wizard/scripts/NTPConf.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- cgit v1.2.1