sync ports with The Matrix

This commit is contained in:
purplerain 2023-08-21 05:20:32 +00:00
parent f75c54fe04
commit a2b482cdca
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64 changed files with 1619 additions and 2432 deletions

View file

@ -1,12 +1,12 @@
Index: LibreNMS/wrapper.py
--- LibreNMS/wrapper.py.orig
+++ LibreNMS/wrapper.py
@@ -278,7 +278,7 @@ def poll_worker(
@@ -280,7 +280,7 @@ def poll_worker(
os.path.dirname(os.path.dirname(os.path.realpath(__file__))),
wrappers[wrapper_type]["executable"],
)
- command = "/usr/bin/env php {} -h {}".format(executable, device_id)
+ command = "${MODPHP_BIN} {} -h {}".format(executable, device_id)
if debug:
command = command + " -d"
exit_code, output = command_runner(
if modules is not None and len(str(modules).strip()):
module_str = re.sub("\s", "", str(modules).strip())
command = command + " -m {}".format(module_str)