diff options
-rwxr-xr-x | modules/rpmdragora/dragoraUpdate | 10 |
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); |