opnsense-ports/net-mgmt/librenms/files/patch-LibreNMS_wrapper.py
Franco Fichtner e0f95c50e1 */*: sync with upstream
Taken from: FreeBSD
2023-08-23 11:37:13 +02:00

11 lines
664 B
Python

--- LibreNMS/wrapper.py.orig 2023-08-21 15:25:48 UTC
+++ LibreNMS/wrapper.py
@@ -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 = "/usr/local/bin/php php {} -h {}".format(executable, device_id)
if modules is not None and len(str(modules).strip()):
module_str = re.sub("\s", "", str(modules).strip())
command = command + " -m {}".format(module_str)