diff options
author | Florent Villard <warly@mandriva.com> | 2003-09-17 17:41:09 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-09-17 17:41:09 +0000 |
commit | 986a271663c7f37797bec011b2ee9379e82ac4fe (patch) | |
tree | add300da8273c0c5dc56f0e13ac72066a80399d1 /client_wizard/Bind_client.pm | |
parent | b5974747d1a6f7669052ddd42d4a45e4eb7072c1 (diff) | |
download | drakwizard-986a271663c7f37797bec011b2ee9379e82ac4fe.tar drakwizard-986a271663c7f37797bec011b2ee9379e82ac4fe.tar.gz drakwizard-986a271663c7f37797bec011b2ee9379e82ac4fe.tar.bz2 drakwizard-986a271663c7f37797bec011b2ee9379e82ac4fe.tar.xz drakwizard-986a271663c7f37797bec011b2ee9379e82ac4fe.zip |
better check of ip addresses in dhcp
check that server has been run in client dns
check that the program is run as root in drakwizard
remove bad quotes in po
Diffstat (limited to 'client_wizard/Bind_client.pm')
-rwxr-xr-x | client_wizard/Bind_client.pm | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/client_wizard/Bind_client.pm b/client_wizard/Bind_client.pm index 799d38f7..932155ca 100755 --- a/client_wizard/Bind_client.pm +++ b/client_wizard/Bind_client.pm @@ -38,8 +38,14 @@ my $o = { client_ip => '', client_name => '' }, - needed_rpm => [ ], - defaultimage => "$ENV{__WIZ_HOME__}client_wizard/images/DNS.png" + needed_rpm => [ ], + defaultimage => "$ENV{__WIZ_HOME__}client_wizard/images/DNS.png", + init => sub { + if (! -f "/var/named/$wiz_domain_name.db") { + return (0, N('You must first run the DNS server wizard')) + } + 1 + } }; $o->{pages} = { @@ -62,18 +68,18 @@ $o->{pages} = { next => 'summary' }, dhcp_warning => { - name => N('Warning'), - data => [ { label => N('You are in dhcp, server may not work with your configuration.') } ], + name => N('Warning') . "\n\n" . N('You are in dhcp, server may not work with your configuration.'), + ignore => 1, next => 'client_id' }, system_error => { - name => N('Error'), - data => [ { label => N('System error, no configuration done') } ], + name => N('Error') . "\n\n" . N('System error, no configuration done'), + ignore => 1, next => 'client_id' }, error => { - name => N('Error'), - data => [ { label => N('This is not a valid address... press next to continue') } ], + name => N('Error') . "\n\n" . N('This is not a valid address... press next to continue'), + ignore => 1, next => 'client_id' }, summary => { @@ -86,8 +92,7 @@ $o->{pages} = { next => 'end' }, end => { - name => N('Congratulations'), - data => [ { label => N('The wizard successfully added the client.') } ], + name => N('Congratulations') . "\n\n" . N('The wizard successfully added the client.'), end => 1, next => 0 }, |