summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--time_wizard/scripts/NTPConf.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/time_wizard/scripts/NTPConf.pm b/time_wizard/scripts/NTPConf.pm
index 5b81124a..b03664d3 100644
--- a/time_wizard/scripts/NTPConf.pm
+++ b/time_wizard/scripts/NTPConf.pm
@@ -45,11 +45,11 @@ sub test {
sub do_it {
my $file = "/etc/sysconfig/clock";
MDK::Common::cp_af($file, $file.".orig");
- open(NEW, "> $file") or die "can not open /etc/ntp/step-tickers: $!";
+ open(NEW, "> $file") or die "can not open $file: $!";
print NEW "UTC=true\n";
print NEW "ZONE=$ENV{wiz_timezone}\n";
print NEW "ARC=false\n";
- close NEW or die "can not close /etc/ntp/step-tickers: $!";
+ 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");
open(NEW, "> /etc/ntp/step-tickers") or die "can not open /etc/ntp/step-tickers: $!";