Skip to content

Commit 8521e23

Browse files
authored
YunoHost: add Update-Funtion (#5450)
1 parent ea60b9b commit 8521e23

File tree

2 files changed

+56
-50
lines changed

2 files changed

+56
-50
lines changed

ct/yunohost.sh

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,24 @@ color
2020
catch_errors
2121

2222
function 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

3743
start
@@ -41,4 +47,4 @@ description
4147
msg_ok "Completed Successfully!\n"
4248
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4349
echo -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}"

frontend/public/json/yunohost.json

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)