@@ -11,7 +11,7 @@ var_disk="${var_disk:-8}"
1111var_cpu=" ${var_cpu:- 2} "
1212var_ram=" ${var_ram:- 4096} "
1313var_os=" ${var_os:- debian} "
14- var_version=" ${var_version:- 12 } "
14+ var_version=" ${var_version:- 13 } "
1515var_unprivileged=" ${var_unprivileged:- 1} "
1616
1717header_info " $APP "
@@ -20,25 +20,29 @@ color
2020catch_errors
2121
2222function update_script() {
23- header_info
24- check_container_storage
25- check_container_resources
26- if [[ ! -d /opt/zammad ]]; then
27- msg_error " No ${APP} Installation Found!"
28- exit
29- fi
30- msg_info " Stopping Service"
31- $STD systemctl stop zammad
32- msg_info " Updating ${APP} "
33- $STD apt-get update
34- $STD apt-mark hold zammad
35- $STD apt-get -y upgrade
36- $STD apt-mark unhold zammad
37- $STD apt-get -y upgrade
38- msg_info " Starting Service"
39- $STD systemctl start zammad
40- msg_ok " Updated ${APP} LXC"
23+ header_info
24+ check_container_storage
25+ check_container_resources
26+ if [[ ! -d /opt/zammad ]]; then
27+ msg_error " No ${APP} Installation Found!"
4128 exit
29+ fi
30+ msg_info " Stopping Service"
31+ systemctl stop zammad
32+ msg_ok " Stopped Service"
33+
34+ msg_info " Updating ${APP} "
35+ $STD apt update
36+ $STD apt-mark hold zammad
37+ $STD apt -y upgrade
38+ $STD apt-mark unhold zammad
39+ $STD apt -y upgrade
40+ msg_ok " Updated ${APP} "
41+
42+ msg_info " Starting Service"
43+ systemctl start zammad
44+ msg_ok " Updated ${APP} LXC"
45+ exit
4246}
4347
4448start
@@ -48,4 +52,4 @@ description
4852msg_ok " Completed Successfully!\n"
4953echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
5054echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
51- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP}${CL} "
55+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP}${CL} "
0 commit comments