summaryrefslogtreecommitdiffstats
path: root/bin/draksambashare
diff options
context:
space:
mode:
Diffstat (limited to 'bin/draksambashare')
-rwxr-xr-xbin/draksambashare4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/draksambashare b/bin/draksambashare
index aef70e8..0c5f97d 100755
--- a/bin/draksambashare
+++ b/bin/draksambashare
@@ -37,7 +37,9 @@ use run_program;
use Libconf::Templates;
use Libconf::Glueconf::Samba::Smb_conf;
-my $in = 'interactive'->vnew('su');
+require_root_capability();
+
+my $in = 'interactive'->vnew;
$in->do_pkgs->ensure_is_installed('samba-server', '/usr/sbin/smbd') or exit(1);
#if (!-f "/etc/sysconfig/wizard_samba") {