From 286a21bb4d78b5bffb032855c3ae27bf39c6ecf1 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:23:16 +0100 Subject: [PATCH] formatting --- ct/zammad.sh | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/ct/zammad.sh b/ct/zammad.sh index 2abb35f6..f7c05237 100644 --- a/ct/zammad.sh +++ b/ct/zammad.sh @@ -25,22 +25,25 @@ color catch_errors function update_script() { -header_info -check_container_storage -check_container_resources -if [[ ! -d /opt/zamad ]]; then msg_error "No ${APP} Installation Found!"; exit; fi -msg_info "Stopping Service" -systemctl stop zammad &>/dev/null -msg_info "Updating ${APP}" -apt-get update &>/dev/null -apt-mark hold zammad &>/dev/null -apt-get -y upgrade &>/dev/null -apt-mark unhold zammad &>/dev/null -apt-get -y upgrade &>/dev/null -msg_info "Starting Service" -systemctl start zammad &>/dev/null -msg_ok "Updated ${APP} LXC" -exit + header_info + check_container_storage + check_container_resources + if [[ ! -d /opt/zamad ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Stopping Service" + systemctl stop zammad &>/dev/null + msg_info "Updating ${APP}" + apt-get update &>/dev/null + apt-mark hold zammad &>/dev/null + apt-get -y upgrade &>/dev/null + apt-mark unhold zammad &>/dev/null + apt-get -y upgrade &>/dev/null + msg_info "Starting Service" + systemctl start zammad &>/dev/null + msg_ok "Updated ${APP} LXC" + exit } start