Remove root validation
This commit is contained in:
parent
f0a3b3af63
commit
08bccce673
|
@ -2185,16 +2185,7 @@ sub configure ($) {
|
||||||
|
|
||||||
#Launch tentacle server in proxy mode if configured
|
#Launch tentacle server in proxy mode if configured
|
||||||
if ($Conf{'proxy_mode'}) {
|
if ($Conf{'proxy_mode'}) {
|
||||||
|
return 1 if (launch_tentacle_proxy() != 0);
|
||||||
#Check if user is root
|
|
||||||
if ($> != 0) {
|
|
||||||
if (launch_tentacle_proxy() != 0) {
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
error ('Proxy mode can not be launched as root');
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add the plugins directory to the PATH
|
# Add the plugins directory to the PATH
|
||||||
|
|
|
@ -4183,14 +4183,7 @@ my $PID = $$;
|
||||||
|
|
||||||
#Launch tentacle server in proxy mode if configured
|
#Launch tentacle server in proxy mode if configured
|
||||||
if ($Conf{'proxy_mode'}) {
|
if ($Conf{'proxy_mode'}) {
|
||||||
|
launch_tentacle_proxy();
|
||||||
#Check if user is root
|
|
||||||
if ($> != 0) {
|
|
||||||
launch_tentacle_proxy();
|
|
||||||
} else {
|
|
||||||
log_message ('error', 'Proxy mode can not be launched as root');
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Advice if YAML::Tiny is allowed in this system
|
# Advice if YAML::Tiny is allowed in this system
|
||||||
|
|
Loading…
Reference in New Issue