check_deploy in output
This commit is contained in:
@@ -22,11 +22,14 @@ function check_install() { // is install in progress
|
|||||||
else return "";
|
else return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_deploy() { // is a 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
|
if (!empty($arr)) return "deployment"; // deploy in progress install has started
|
||||||
else return 0;
|
else {
|
||||||
|
$arr = check_response("deploy-".$application); // application install in progress PID exists
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_redis($group="web_out", $key="") {
|
function check_redis($group="web_out", $key="") {
|
||||||
|
|||||||
2
scan.php
2
scan.php
@@ -244,7 +244,7 @@ switch ($_GET["op"]) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "deploy":
|
case "deploy":
|
||||||
if ($key=check_deploy()) {
|
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 has already started.<br>Please wait and do not start a new one...";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user