Bump Z-Y Scripts to Debian 13 (#8174)

This commit is contained in:
CanbiZ
2025-10-07 21:23:56 +02:00
committed by GitHub
parent ad1650ddc2
commit c75be209e2
27 changed files with 164 additions and 140 deletions

View File

@@ -11,7 +11,7 @@ var_disk="${var_disk:-8}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}"
var_os="${var_os:-debian}"
var_version="${var_version:-12}"
var_version="${var_version:-13}"
var_unprivileged="${var_unprivileged:-1}"
header_info "$APP"
@@ -20,25 +20,29 @@ color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/zammad ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Stopping Service"
$STD systemctl stop zammad
msg_info "Updating ${APP}"
$STD apt-get update
$STD apt-mark hold zammad
$STD apt-get -y upgrade
$STD apt-mark unhold zammad
$STD apt-get -y upgrade
msg_info "Starting Service"
$STD systemctl start zammad
msg_ok "Updated ${APP} LXC"
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/zammad ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Stopping Service"
systemctl stop zammad
msg_ok "Stopped Service"
msg_info "Updating ${APP}"
$STD apt update
$STD apt-mark hold zammad
$STD apt -y upgrade
$STD apt-mark unhold zammad
$STD apt -y upgrade
msg_ok "Updated ${APP}"
msg_info "Starting Service"
systemctl start zammad
msg_ok "Updated ${APP} LXC"
exit
}
start
@@ -48,4 +52,4 @@ description
msg_ok "Completed Successfully!\n"
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"