add backwards compatibility

use `/lsiopy/bin/python3` if exists, `python3` if not
This commit is contained in:
aptalca
2023-06-20 10:51:28 -04:00
committed by GitHub
parent 2145707e91
commit 7660e9c953
+2 -2
View File
@@ -47,7 +47,7 @@
}
function GetProxies() {
$output = shell_exec("/lsiopy/bin/python3 /dashboard/swag-proxies.py");
$output = shell_exec("if test -f /lsiopy/bin/python3; then /lsiopy/bin/python3 /dashboard/swag-proxies.py; else python3 /dashboard/swag-proxies.py; fi");
$results = json_decode($output);
$status = "";
$index = 0;
@@ -100,7 +100,7 @@
}
function GetF2B() {
$output = shell_exec("/lsiopy/bin/python3 /dashboard/swag-f2b.py");
$output = shell_exec("if test -f /lsiopy/bin/python3; then /lsiopy/bin/python3 /dashboard/swag-f2b.py; else python3 /dashboard/swag-f2b.py; fi");
$jails = json_decode($output, true);
$status = "";
$index = 0;