summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-xdrakwizard.pl9
1 files changed, 4 insertions, 5 deletions
diff --git a/drakwizard.pl b/drakwizard.pl
index 72740c0a..093a39bf 100755
--- a/drakwizard.pl
+++ b/drakwizard.pl
@@ -76,6 +76,9 @@ sub wizard {
my $page = $o->{pages}{welcome};
$::Wizard_title = $o->{name};
$::Wizard_pix_up = $o->{defaultimage};
+ if ($> && !$o->{allow_user} && !$::testing) {
+ require_root_capability();
+ }
check_rpm($o->{needed_rpm}) if $o->{needed_rpm};
if (defined $o->{init}) {
my ($res, $msg) = &{$o->{init}};
@@ -84,11 +87,7 @@ sub wizard {
exit if ! $::testing
}
}
- print "root $> allow_user $o->{allow_user} testing $::testing\n";
- if ($> && !$o->{allow_user} && !$::testing) {
- $in->ask_okcancel("error", N('You need to be root to run this wizard'));
- exit;
- }
+
my $next = 'welcome';
my @steps;
while (1) {