Add Update function to OpenProject

This commit is contained in:
Michel Roegl-Brunner 2025-03-24 09:52:04 +01:00
parent 126cd903b5
commit 976400af27
2 changed files with 22 additions and 19 deletions

View File

@ -23,11 +23,14 @@ function update_script() {
header_info header_info
check_container_storage check_container_storage
check_container_resources check_container_resources
if [[ ! -d /var ]]; then if [[ ! -f /etc/openproject/installer.dat ]]; then
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_error "No Update Function Found!" msg_info "Updating ${APP}"
$STD apt-get update
$STD apt-get apt-get install --only-upgrade -y openproject
msg_ok "Updated ${APP}"
exit exit
} }