summaryrefslogtreecommitdiff
path: root/net-mgmt/librenms/files/patch-LibreNMS_____init____.py
blob: a5a301d57649bed3e691a2b9cc9756ad22fb9b9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- LibreNMS/__init__.py.orig	2023-09-19 01:59:06 UTC
+++ 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 = "/usr/local/bin/php %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 = ("/usr/local/bin/php",)
     else:
         base = ()