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:
Tony Murray
2021-11-17 10:23:37 -06:00
committed by GitHub
parent 2f478d04cb
commit 31c9d9c307

View File

@@ -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');
}