mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Formatting issues
Formatting issues
This commit is contained in:
@@ -49,7 +49,7 @@ if (strstr(`php -ln config.php`, 'No syntax errors detected')) {
|
||||
|
||||
// Check we are running this as the root user
|
||||
if (function_exists('posix_getpwuid')) {
|
||||
$userinfo = posix_getpwuid( posix_geteuid() );
|
||||
$userinfo = posix_getpwuid(posix_geteuid());
|
||||
$username = $userinfo['name'];
|
||||
} else {
|
||||
$username = getenv('USERNAME') ?: getenv('USER');//http://php.net/manual/en/function.get-current-user.php
|
||||
|
||||
Reference in New Issue
Block a user