-make it so that apache can call airtime-check-system
This commit is contained in:
parent
1a94d8bbdc
commit
6f3e6535de
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue