-make it so that apache can call airtime-check-system
This commit is contained in:
parent
1a94d8bbdc
commit
6f3e6535de
@ -29,7 +29,8 @@ class AirtimeCheck {
|
||||
public static function ExitIfNotRoot()
|
||||
{
|
||||
// Need to check that we are superuser before running this.
|
||||
if(exec("whoami") != "root"){
|
||||
$user = exec("whoami");
|
||||
if($user != "root" && $user != "www-data"){
|
||||
echo "Must be root user.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user