aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2016-06-08 23:34:58 +0859
committerAngelo Naselli <anaselli@linux.it>2016-06-08 23:34:58 +0859
commit6a98d4edc26dca4620ee4773adc23e6cfbefafda (patch)
treed6f664c1340489313f5511507950984f3c3fb404 /modules
parentb430b64127630cf53dc772273c78a16063e923ec (diff)
downloadmanatools-6a98d4edc26dca4620ee4773adc23e6cfbefafda.tar
manatools-6a98d4edc26dca4620ee4773adc23e6cfbefafda.tar.gz
manatools-6a98d4edc26dca4620ee4773adc23e6cfbefafda.tar.bz2
manatools-6a98d4edc26dca4620ee4773adc23e6cfbefafda.tar.xz
manatools-6a98d4edc26dca4620ee4773adc23e6cfbefafda.zip
mga#18643, dragoraUpdate can be run as user only with mana update
command now
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/rpmdragora/dragoraUpdate10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/rpmdragora/dragoraUpdate b/modules/rpmdragora/dragoraUpdate
index f2d32716..9ae6bd2b 100755
--- a/modules/rpmdragora/dragoraUpdate
+++ b/modules/rpmdragora/dragoraUpdate
@@ -27,6 +27,7 @@
#
use strict;
+use English;
use MDK::Common::Func 'any';
use File::ShareDir ':ALL';
@@ -61,7 +62,14 @@ our $w;
our $statusbar;
my $loc = ManaTools::rpmdragora::locale();
-warn_about_user_mode();
+if ($EUID != 0) {
+ ManaTools::rpmdragora::interactive_msg(
+ $loc->N("rpmdragora update"),
+ $loc->N("root privileges required, or run <%s> instead", "mana update")
+ );
+ exit 0 ;
+}
+
my (%data, $initialized);