2 Commits

Author SHA1 Message Date
594a430eb9 check_upgrade
All checks were successful
continuous-integration/drone/push Build is passing
2025-03-19 14:12:32 +01:00
ae4a031584 change update service name 2025-03-19 14:08:58 +01:00
2 changed files with 14 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ function show_service($name, $containers) {
}
function show_service_update($name, $update, $uptodate) {
$str = '<table id="'.$name.'">';
$str = '<table id="update_'.$name.'">';
$str .= "<tr><th>{$name}</th></tr>";
$update = trim($update);

View File

@@ -284,6 +284,19 @@ function update(service) {
else alert(service+' update under construction');
}
function check_upgrade() {
var url = 'scan.php?op=check_upgrade';
jQuery.get(url, function(data) {
console.log('check_upgrade: '+data);
if (data=="WAIT" || data=="") {
setTimeout(check_upgrade, 1000);
}
else {
// TODO
}
});
}
function framework_upgrade() {
var url = 'scan.php?op=upgrade';
jQuery.get(url, function(data) {