5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-24 01:33:48 +03:00

CLIHandler.pm: remove run as root restriction

This should be checked somewhere else.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2017-01-12 10:12:16 +01:00 committed by Fabian Grünbichler
parent 7b7f99c9b9
commit cb87191ed6

View File

@ -506,10 +506,6 @@ sub run_cli_handler {
initlog($exename); initlog($exename);
if ($class !~ m/^PVE::Service::/) {
die "please run as root\n" if $> != 0;
}
no strict 'refs'; no strict 'refs';
my $def = ${"${class}::cmddef"}; my $def = ${"${class}::cmddef"};