check_deploy in output

This commit is contained in:
2025-01-09 10:18:44 +01:00
parent 79d17a78af
commit d58b681918
2 changed files with 4 additions and 3 deletions

View File

@@ -25,10 +25,11 @@ function check_install() { // is install in progress
function check_deploy($application) { // is an application deploy in progress function check_deploy($application) { // is an application deploy in progress
$arr = check_request("deployment"); $arr = check_request("deployment");
if (!empty($arr)) return "deployment"; // deploy in progress install has started if (!empty($arr)) return "deploy-".$application; // deploy in progress install has started
else { else {
$arr = check_response("deploy-".$application); // application install in progress PID exists $arr = check_response("deploy-".$application); // application install in progress PID exists
return 0; if (!empty($arr)) return "deploy-".$application;
else return 0;
} }
} }

View File

@@ -245,7 +245,7 @@ switch ($_GET["op"]) {
break; break;
case "deploy": case "deploy":
if ($key=check_deploy($_GET["additional"])) { if ($key=check_deploy($_GET["additional"])) {
$text="A deployment has already started.<br>Please wait and do not start a new one..."; $text="A deployment ({$_GET["additional"]}) has already started.<br>Please wait and do not start a new one...";
} }
else { else {
$text="Install in progress... Please wait..."; $text="Install in progress... Please wait...";