mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Link for can't check Python dependencies validation (#13520)
* Link for can't check Python dependencies validation Hopefully gives the user some direction * Fix style
This commit is contained in:
@@ -83,7 +83,10 @@ class Python extends BaseValidation
|
||||
$user_mismatch = function_exists('posix_getpwuid') ? (posix_getpwuid(posix_geteuid())['name'] ?? null) !== $user : false;
|
||||
|
||||
if ($user_mismatch) {
|
||||
$validator->warn("Could not check Python dependencies because this script is not running as $user");
|
||||
$validator->warn(
|
||||
"Could not check Python dependencies because this script is not running as $user",
|
||||
'The install docs show how this is done on a new install: https://docs.librenms.org/Installation/Install-LibreNMS/#configure-php-fpm'
|
||||
);
|
||||
} else {
|
||||
$validator->fail("Python3 module issue found: '" . $process->getOutput() . "'", 'pip3 install -r ' . Config::get('install_dir') . '/requirements.txt');
|
||||
}
|
||||
|
Reference in New Issue
Block a user