Skip to content

Commit d74131f

Browse files
authored
freshrss: fix for broken permissions after update (#7953)
Added permission check and fix for sensitive-log.sh.
1 parent 87b30f6 commit d74131f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

ct/freshrss.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,16 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
msg_error "FreshRSS should be updated via the user interface."
31-
exit
30+
31+
if [ ! -x /opt/freshrss/cli/sensitive-log.sh ]; then
32+
msg_info "Fixing wrong permissions"
33+
chmod +x /opt/freshrss/cli/sensitive-log.sh
34+
systemctl restart apache2
35+
msg_ok "Fixed wrong permissions"
36+
else
37+
msg_error "FreshRSS should be updated via the user interface."
38+
exit
39+
fi
3240
}
3341

3442
start
@@ -38,4 +46,4 @@ description
3846
msg_ok "Completed Successfully!\n"
3947
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
4048
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
41-
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"
49+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}${CL}"

0 commit comments

Comments
 (0)