Skip to content

Commit b8b9ba6

Browse files
authored
Merge pull request #716 from quietsy/swag-dashboard
Change the python path according to swag updates
2 parents fad06b5 + 7660e9c commit b8b9ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

root/dashboard/www/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function GetHeader() {
4747
}
4848

4949
function GetProxies() {
50-
$output = shell_exec("python3 /dashboard/swag-proxies.py");
50+
$output = shell_exec("if test -f /lsiopy/bin/python3; then /lsiopy/bin/python3 /dashboard/swag-proxies.py; else python3 /dashboard/swag-proxies.py; fi");
5151
$results = json_decode($output);
5252
$status = "";
5353
$index = 0;
@@ -100,7 +100,7 @@ function GetProxies() {
100100
}
101101

102102
function GetF2B() {
103-
$output = shell_exec("python3 /dashboard/swag-f2b.py");
103+
$output = shell_exec("if test -f /lsiopy/bin/python3; then /lsiopy/bin/python3 /dashboard/swag-f2b.py; else python3 /dashboard/swag-f2b.py; fi");
104104
$jails = json_decode($output, true);
105105
$status = "";
106106
$index = 0;

0 commit comments

Comments
 (0)