SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
net/librenms/patches/patch-LibreNMS___init___py
Normal file
21
net/librenms/patches/patch-LibreNMS___init___py
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: LibreNMS/__init__.py
|
||||
--- LibreNMS/__init__.py.orig
|
||||
+++ LibreNMS/__init__.py
|
||||
@@ -167,7 +167,7 @@ def get_config_data(base_dir):
|
||||
)
|
||||
logger.debug("Traceback:", exc_info=True)
|
||||
|
||||
- config_cmd = ["/usr/bin/env", "php", "%s/config_to_json.php" % base_dir]
|
||||
+ config_cmd = ["${MODPHP_BIN}", "%s/config_to_json.php" % base_dir]
|
||||
try:
|
||||
exit_code, output = command_runner(config_cmd, timeout=300, stderr=False)
|
||||
if exit_code != 0:
|
||||
@@ -194,7 +194,7 @@ def call_script(script, args=()):
|
||||
"""
|
||||
if script.endswith(".php"):
|
||||
# save calling the sh process
|
||||
- base = ("/usr/bin/env", "php")
|
||||
+ base = ("${MODPHP_BIN}")
|
||||
else:
|
||||
base = ()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue