formatting

This commit is contained in:
CanbiZ 2024-12-18 11:23:16 +01:00 committed by GitHub
parent f2c8207899
commit 286a21bb4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,22 +25,25 @@ color
catch_errors catch_errors
function update_script() { function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /opt/zamad ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/zamad ]]; then
msg_info "Stopping Service" msg_error "No ${APP} Installation Found!"
systemctl stop zammad &>/dev/null exit
msg_info "Updating ${APP}" fi
apt-get update &>/dev/null msg_info "Stopping Service"
apt-mark hold zammad &>/dev/null systemctl stop zammad &>/dev/null
apt-get -y upgrade &>/dev/null msg_info "Updating ${APP}"
apt-mark unhold zammad &>/dev/null apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null apt-mark hold zammad &>/dev/null
msg_info "Starting Service" apt-get -y upgrade &>/dev/null
systemctl start zammad &>/dev/null apt-mark unhold zammad &>/dev/null
msg_ok "Updated ${APP} LXC" apt-get -y upgrade &>/dev/null
exit msg_info "Starting Service"
systemctl start zammad &>/dev/null
msg_ok "Updated ${APP} LXC"
exit
} }
start start