summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-09-12 16:01:34 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-09-12 16:01:34 +0000
commit7447470a6bfdd1cc2d5594c9544b5b085693c7cf (patch)
tree4d5dcf167d06cb9386c1e59ffd20ce591410db1b
parentd3d5caf753f04173a42923e5a440ee5921aa1ba6 (diff)
downloadcontrol-center-7447470a6bfdd1cc2d5594c9544b5b085693c7cf.tar
control-center-7447470a6bfdd1cc2d5594c9544b5b085693c7cf.tar.gz
control-center-7447470a6bfdd1cc2d5594c9544b5b085693c7cf.tar.bz2
control-center-7447470a6bfdd1cc2d5594c9544b5b085693c7cf.tar.xz
control-center-7447470a6bfdd1cc2d5594c9544b5b085693c7cf.zip
fix #5455: show wizards again
-rwxr-xr-xcontrol-center31
1 files changed, 13 insertions, 18 deletions
diff --git a/control-center b/control-center
index 6357fbe4..5362c2bb 100755
--- a/control-center
+++ b/control-center
@@ -37,7 +37,7 @@ use ugtk2 qw(:create :dialogs :helpers :wrappers);
#-------------------------------------------------------------
# paths
my ($bindir, $sbindir, $xbindir) = ("/usr/bin", "/usr/sbin", "/usr/X11R6/bin");
-my ($mcc_dir, $wizdir) = ("/usr/share/mcc", "/usr/share/wizards/");
+my $mcc_dir = "/usr/share/mcc";
my $themes_dir = "$mcc_dir/themes/";
@@ -228,30 +228,25 @@ my @tree =
[ "Software Media Manager", 'source-manager' ],
]
]),
- if_(0 && $::isWiz,
+ if_($::isWiz,
[ N("Server Configuration"), 'wizard-mdk',
[
(map {
- my ($id, $wizard, $icon, $description) = @$_;
- my $path = $wizdir . $wizard . "_wizard/" . $wizard . ".wiz";
- if (-e $path) {
- $exec_hash->{$id} = [ "drakwizard", "$sbindir/drakwizard $path", -1, $description ];
- [ $id, $icon ];
- } else {
- ();
- }
+ my ($id, $wizard, $icon, $description) = @$_;
+ $exec_hash->{$id} = [ "drakwizard", "$sbindir/drakwizard $wizard", -1, $description ];
+ [ $id, $icon ];
} (# [ id, wizard file name, icon, description ]
[ "DHCP wizard", "dhcp", 'dhcp_server-mdk', N("The DHCP wizard will help you configuring the DHCP services of your server") ],
- [ "DNS Client wizard", "client", 'dns_client-mdk', N("The DNS Client wizard will help you in adding a new client in your local DNS") ],
- [ "DNS wizard", "dns", 'dns_server-mdk', N("The DNS wizard will help you configuring the DNS services of your server.") ],
- [ "FTP wizard", "ftp", 'ftp-mdk', N("The FTP wizard will help you configuring the FTP Server for your network") ],
- [ "News wizard", "news", 'news-mdk', N("The News wizard will help you configuring the Internet News services for your network") ],
+ [ "DNS Client wizard", "bind_client", 'dns_client-mdk', N("The DNS Client wizard will help you in adding a new client in your local DNS") ],
+ [ "DNS wizard", "bind", 'dns_server-mdk', N("The DNS wizard will help you configuring the DNS services of your server.") ],
+ [ "FTP wizard", "proftpd", 'ftp-mdk', N("The FTP wizard will help you configuring the FTP Server for your network") ],
+ [ "News wizard", "inn", 'news-mdk', N("The News wizard will help you configuring the Internet News services for your network") ],
[ "Postfix wizard", "postfix", 'postfix-mdk', N("The Postfix wizard will help you configuring the Internet Mail services for your network") ],
- [ "Squid wizard", "proxy", 'drakproxy-mdk.png', N("The Proxy wizard will help you configuring a web caching proxy server") ],
+ [ "Squid wizard", "squid", 'drakproxy-mdk.png', N("The Proxy wizard will help you configuring a web caching proxy server") ],
[ "Samba wizard", "samba", 'samba_server-mdk', N("The Samba wizard will help you configuring your server to behave as a file and print server for workstations running non-Linux systems") ],
- [ "Time wizard", "time", 'ntp_server-mdk', N("The Time wizard will help you to set the time of your server synchronized with an external time server") ],
- [ "Web wizard", "web", 'web_server-mdk', N("The Web wizard will help you configuring the Web Server for your network") ]
- )
+ [ "Time wizard", "ntp", 'ntp_server-mdk', N("The Time wizard will help you to set the time of your server synchronized with an external time server") ],
+
+ [ "Web wizard", "apache2", 'web_server-mdk', N("The Web wizard will help you configuring the Web Server for your network") ] )
)
]
]),