diff options
author | Olivier Blin <oblin@mandriva.org> | 2006-01-03 16:47:47 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2006-01-03 16:47:47 +0000 |
commit | d934ba7f5ed503f055fe29633fa96c658cc8151b (patch) | |
tree | 28399fc8208afe932fe600d6f05faddeb9bbdbb8 | |
parent | 260f7a866e5949c77309727c978ad12adc26d420 (diff) | |
download | drakwizard-d934ba7f5ed503f055fe29633fa96c658cc8151b.tar drakwizard-d934ba7f5ed503f055fe29633fa96c658cc8151b.tar.gz drakwizard-d934ba7f5ed503f055fe29633fa96c658cc8151b.tar.bz2 drakwizard-d934ba7f5ed503f055fe29633fa96c658cc8151b.tar.xz drakwizard-d934ba7f5ed503f055fe29633fa96c658cc8151b.zip |
simplify and perl_checker style
-rwxr-xr-x | drakwizard.pl | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/drakwizard.pl b/drakwizard.pl index 52bbf5f5..fe6425c2 100755 --- a/drakwizard.pl +++ b/drakwizard.pl @@ -39,29 +39,26 @@ $::Wiz_more_dir = "/etc/wizard.d/"; my $in = interactive->vnew; my %wiz = ( - apache2 => ['Apache', N("Apache2 web server"), { ver => 2 }], - samba => ['Samba', N("Samba server")], - sambashare => ['Sambashare', N("Manage Samba share")], - sambaprint => ['Sambaprint', N("Manage Samba print")], - postfix => ['Postfix', N("Mail server")], - ); - -# display all wizards --d "/usr/share/wizards/proxy_wizard" and %wiz = ( - %wiz, - nisautofs => ['Nisautofs', N("NIS server autofs map")], - installsrv => ['Installsrv', N("Linux Install server")], - ldap => [ 'Ldap', N("ldap server")], - squid => ['Squid', N("Proxy")], - sshd => ['Sshd', N("OpenSSH daemon configuration")], - ntp => ['Ntp', N("Time server")], - dhcp => ['Dhcp', N("DHCP server")], - bind => ['Bind', N("DNS server")], - inn => ['Inn', N("News server")], - nfs => ['NFS', N("NFS server")], - kolab => ['Kolab', N("Kolab server")], - proftpd => ['Proftpd', N("FTP server")], - ); + apache2 => [ 'Apache', N("Apache2 web server"), { ver => 2 } ], + samba => [ 'Samba', N("Samba server") ], + sambashare => [ 'Sambashare', N("Manage Samba share") ], + sambaprint => [ 'Sambaprint', N("Manage Samba print") ], + postfix => [ 'Postfix', N("Mail server") ], + if_(all($::Wiz_more_dir), + nisautofs => [ 'Nisautofs', N("NIS server autofs map") ], + installsrv => [ 'Installsrv', N("Linux Install server") ], + ldap => [ 'Ldap', N("ldap server") ], + squid => [ 'Squid', N("Proxy") ], + sshd => [ 'Sshd', N("OpenSSH daemon configuration") ], + ntp => [ 'Ntp', N("Time server") ], + dhcp => [ 'Dhcp', N("DHCP server") ], + bind => [ 'Bind', N("DNS server") ], + inn => [ 'Inn', N("News server") ], + nfs => [ 'NFS', N("NFS server") ], + kolab => [ 'Kolab', N("Kolab server") ], + proftpd => [ 'Proftpd', N("FTP server") ], + ), +); foreach my $file (glob_("$::Wiz_more_dir/*.conf")) { |