deploy status in progress
This commit is contained in:
20
scan.php
20
scan.php
@@ -196,21 +196,33 @@ switch ($_GET["op"]) {
|
|||||||
</script>
|
</script>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
else { // deploy
|
elseif ($data["STATUS"]=="2") { // deploy
|
||||||
echo "DEPLOY:".$data["STATUS"];
|
echo "Install has finished.";
|
||||||
}
|
}
|
||||||
redis_remove("$key");
|
redis_remove("$key");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else echo "";
|
else {
|
||||||
|
$arr = check_redis("web_in","deployment");
|
||||||
|
if (!empty($arr)) { // deployment in progress
|
||||||
|
foreach ($arr as $key=>$data) {
|
||||||
|
if ($key=="deployment") {
|
||||||
|
if ($data["STATUS"]=="1") { // TODO - curenct state message???
|
||||||
|
echo "Install in progress... Please wait...";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else echo ""; // no deployment, finished
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "deploy":
|
case "deploy":
|
||||||
if ($key=check_deploy()) {
|
if ($key=check_deploy()) {
|
||||||
$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 {
|
||||||
$text="Installing in progress... Please wait...";
|
$text="Install in progress... Please wait...";
|
||||||
$fields = $_GET;
|
$fields = $_GET;
|
||||||
unset($fields["op"]);
|
unset($fields["op"]);
|
||||||
unset($fields["additional"]);
|
unset($fields["additional"]);
|
||||||
|
Reference in New Issue
Block a user