@@ -20,18 +20,24 @@ color
2020catch_errors
2121
2222function update_script() {
23- header_info
24- check_container_storage
25- check_container_resources
26- if [[ ! -f /etc/apt/trusted.gpg.d/php.gpg ]]; then
27- msg_error " No ${APP} Installation Found!"
28- exit
29- fi
30- msg_info " Updating $APP LXC"
31- $STD apt-get update
32- $STD apt-get -y upgrade
33- msg_ok " Updated $APP LXC"
23+ header_info
24+ check_container_storage
25+ check_container_resources
26+ if [[ ! -f /etc/apt/trusted.gpg.d/php.gpg ]]; then
27+ msg_error " No ${APP} Installation Found!"
3428 exit
29+ fi
30+ msg_info " Updating OS"
31+ $STD apt-get update
32+ $STD apt-get -y upgrade
33+ msg_ok " Updated OS"
34+
35+ msg_info " Updating $APP LXC"
36+ $STD yunohost tools update
37+ $STD yunohost tools upgrade system
38+ $STD yunohost tools upgrade apps
39+ msg_ok " Updated $APP LXC"
40+ exit
3541}
3642
3743start
@@ -41,4 +47,4 @@ description
4147msg_ok " Completed Successfully!\n"
4248echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
4349echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
44- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP}${CL} "
50+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP}${CL} "
0 commit comments