ports/net/librenms/patches/patch-LibreNMS_wrapper_py

13 lines
658 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: LibreNMS/wrapper.py
--- LibreNMS/wrapper.py.orig
+++ LibreNMS/wrapper.py
2023-08-21 05:20:32 +00:00
@@ -280,7 +280,7 @@ def poll_worker(
2023-08-16 22:26:55 +00:00
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)
2023-08-21 05:20:32 +00:00
if modules is not None and len(str(modules).strip()):
module_str = re.sub("\s", "", str(modules).strip())
command = command + " -m {}".format(module_str)