From d74131fe6f897bc03cd72c2a3cc3cdb6dce4c0b8 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sun, 28 Sep 2025 16:22:28 +0200 Subject: [PATCH] freshrss: fix for broken permissions after update (#7953) Added permission check and fix for sensitive-log.sh. --- ct/freshrss.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ct/freshrss.sh b/ct/freshrss.sh index bd8d1caed..69acd16ce 100644 --- a/ct/freshrss.sh +++ b/ct/freshrss.sh @@ -27,8 +27,16 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi - msg_error "FreshRSS should be updated via the user interface." - exit + + 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 } start @@ -38,4 +46,4 @@ description msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Access it using the following URL:${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}" \ No newline at end of file +echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"