Update scripts for Debian 13 and improve update messages

Bump default OS version from Debian 12 to 13 across all container scripts. Standardize update messages to use explicit service names and success confirmations. Refactor update functions for consistency, improve error handling, and update package management commands to use 'apt' instead of 'apt-get'.
This commit is contained in:
CanbiZ
2025-11-12 11:14:37 +01:00
parent 66409ac1cf
commit e5c3c19106
36 changed files with 348 additions and 364 deletions

View File

@@ -11,7 +11,7 @@ var_cpu="${var_cpu:-1}"
var_ram="${var_ram:-1024}"
var_disk="${var_disk:-8}"
var_os="${var_os:-debian}"
var_version="${var_version:-12}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
@@ -29,18 +29,18 @@ function update_script() {
exit
fi
if check_for_gh_release "gitea" "go-gitea/gitea"; then
msg_info "Stopping service"
msg_info "Stopping Service"
systemctl stop gitea
msg_ok "Service stopped"
msg_ok "Stopped Service"
rm -rf /usr/local/bin/gitea
fetch_and_deploy_gh_release "gitea" "go-gitea/gitea" "singlefile" "latest" "/usr/local/bin" "gitea-*-linux-amd64"
chmod +x /usr/local/bin/gitea
msg_info "Starting service"
msg_info "Starting Service"
systemctl start gitea
msg_ok "Started service"
msg_ok "Update Successful"
msg_ok "Started Service"
msg_ok "Updated successfully"
fi
exit
}