diff options
Diffstat (limited to 'perl-install/timezone.pm')
-rw-r--r-- | perl-install/timezone.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/timezone.pm b/perl-install/timezone.pm index df8da49b2..84c4d685f 100644 --- a/perl-install/timezone.pm +++ b/perl-install/timezone.pm @@ -22,12 +22,13 @@ sub read { } sub ntp_server { + my $setting = @_ > 1; my ($prefix, $server) = @_; my $f = "$prefix/etc/ntp.conf"; -e $f or return; - if (@_ > 1) { + if ($setting) { my $added = 0; substInFile { if (/^#?\s*server\s+(\S*)/ && $1 ne '127.127.1.0') { |