From 7660e9c9534e2c9fff10821d6dcc37d0aa3c39f1 Mon Sep 17 00:00:00 2001 From: aptalca <541623+aptalca@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:51:28 -0400 Subject: [PATCH] add backwards compatibility use `/lsiopy/bin/python3` if exists, `python3` if not --- root/dashboard/www/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/dashboard/www/index.php b/root/dashboard/www/index.php index 507403f..64478b3 100644 --- a/root/dashboard/www/index.php +++ b/root/dashboard/www/index.php @@ -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;