mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-08 00:39:16 +00:00
formatting
This commit is contained in:
parent
f2c8207899
commit
286a21bb4d
35
ct/zammad.sh
35
ct/zammad.sh
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user