diff options
author | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-06 11:11:00 +0000 |
---|---|---|
committer | Arnaud Desmons <adesmons@mandriva.com> | 2002-09-06 11:11:00 +0000 |
commit | 0473e5a1adb2a94e4f29b20d94ae8bace968f415 (patch) | |
tree | cc594243933f743472ab12bf7fcc2aa0438cfedd | |
parent | 4437bfb045a81f00d2456a747fc3294d8662bc59 (diff) | |
download | drakwizard-0473e5a1adb2a94e4f29b20d94ae8bace968f415.tar drakwizard-0473e5a1adb2a94e4f29b20d94ae8bace968f415.tar.gz drakwizard-0473e5a1adb2a94e4f29b20d94ae8bace968f415.tar.bz2 drakwizard-0473e5a1adb2a94e4f29b20d94ae8bace968f415.tar.xz drakwizard-0473e5a1adb2a94e4f29b20d94ae8bace968f415.zip |
bug in cp of zoneinfo
-rw-r--r-- | time_wizard/scripts/NTPConf.pm | 4 |
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: $!"; |