21 lines
744 B
Python
21 lines
744 B
Python
--- LibreNMS/__init__.py.orig 2024-09-29 23:40:22 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/lnms" % base_dir, "config:get", "--dump"]
|
|
+ config_cmd = ["%%LOCALBASE%%/bin/php", "%s/lnms" % base_dir, "config:get", "--dump"]
|
|
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 = ("%%LOCALBASE%%/bin/php",)
|
|
else:
|
|
base = ()
|
|
|