summaryrefslogtreecommitdiffstats
path: root/time_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2006-06-21 09:55:45 +0000
committerAntoine Ginies <aginies@mandriva.com>2006-06-21 09:55:45 +0000
commit02da6659361e7e1b8469b535d0245daf05df01a0 (patch)
tree001fed757a2ddfbe96c637a64139da08837a82f6 /time_wizard
parent72db8d6b3642c264598789d34bb37bf586475931 (diff)
downloaddrakwizard-02da6659361e7e1b8469b535d0245daf05df01a0.tar
drakwizard-02da6659361e7e1b8469b535d0245daf05df01a0.tar.gz
drakwizard-02da6659361e7e1b8469b535d0245daf05df01a0.tar.bz2
drakwizard-02da6659361e7e1b8469b535d0245daf05df01a0.tar.xz
drakwizard-02da6659361e7e1b8469b535d0245daf05df01a0.zip
fix third server and layout
Diffstat (limited to 'time_wizard')
-rw-r--r--time_wizard/Ntp.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/time_wizard/Ntp.pm b/time_wizard/Ntp.pm
index fffd737b..470bbfe9 100644
--- a/time_wizard/Ntp.pm
+++ b/time_wizard/Ntp.pm
@@ -75,7 +75,7 @@ $o->{pages} = {
next => 'config'
},
config => {
- name => N("Time servers") . "\n\n" . N("Select a primary a secondary and a third server from the list.") . "\n\n" . N("(we recommend using the server pool.ntp.org twice as this server randomly points to available time servers)"),
+ name => N("Time servers") . "\n" . N("Select a primary a secondary and a third server from the list.") . "\n" . N("(we recommend using the server pool.ntp.org twice as this server randomly points to available time servers)"),
pre => sub {
$o->{var}{varserver1} ||= 'pool.ntp.org';
$o->{var}{varserver2} ||= 'pool.ntp.org';
@@ -209,7 +209,8 @@ sub do_it {
-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 $o->{var}{varserver1}."\n";
- print NEW $o->{var}{varserver2}."\n";
+ print NEW $o->{var}{varserver2}."\n";
+ print NEW $o->{var}{varserver3}."\n";
close NEW or die "can not close /etc/ntp/step-tickers: $!";
substInFile { s/(# server clock.via.net)/$1\nserver $o->{var}{varserver1}/ } '/etc/ntp.conf' if -f '/etc/ntp.conf';
standalone::explanations("Wrote /etc/ntp/step-tickers, starting services");