Add explicit exit calls to update_script functions (#8752)

This commit is contained in:
CanbiZ
2025-10-30 05:03:54 -07:00
committed by GitHub
parent 2d9d62118f
commit 5a92816946
31 changed files with 36 additions and 42 deletions

View File

@@ -20,23 +20,24 @@ color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/freshrss ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/freshrss ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
if [ ! -x /opt/freshrss/cli/sensitive-log.sh ]; then
msg_info "Fixing wrong permissions"
chmod +x /opt/freshrss/cli/sensitive-log.sh
systemctl restart apache2
msg_ok "Fixed wrong permissions"
else
msg_error "FreshRSS should be updated via the user interface."
exit
fi
if [ ! -x /opt/freshrss/cli/sensitive-log.sh ]; then
msg_info "Fixing wrong permissions"
chmod +x /opt/freshrss/cli/sensitive-log.sh
systemctl restart apache2
msg_ok "Fixed wrong permissions"
exit
else
msg_error "FreshRSS should be updated via the user interface."
exit
fi
}
start