Closed xoddark closed 1 year ago
If folder /var/log/freshrss_app should belong to app_user, perhaps upgrade script should ensure of that.
I confirm, I get the same issue after the update. with some help from the chat, an update of the permissions solved the problem (sudo chown freshrss:root /var/log/freshrss)
Fixed by #150
Same problem for me. @pobee24 's solution worked for me.
$ sudo chown freshrss:root /var/log/freshrss
Thanks to @xoddark and @lapineige for the fix.
@lapineige or @plopoyop : That would be good idea to release a new version with the fix, no ?
That is exactly what the fix do :
log_path="/var/log/$app"
mkdir -p $log_path
chown $app:www-data "$log_path"
The merge in master was 2 days ago, did you upgrade after this date ?
The package version wasn't upgraded, so Yunohost don't propose me upgrade. The package should not have been upgraded ?
Good point, thanks !
Describe the bug
After update, I receive from my Yunohost instance emails with subject : Cron freshrss@yunhost /usr/bin/php7.4 /var/www/freshrss/app/actualize_script.php >/var/log/freshrss/freshrss.log 2>&1 And content : bin/sh: 1: cannot create /var/log/freshrss/freshrss.log: Permission denied
Context
yunohost app info $app_id
Steps to reproduce
Expected behavior
The actualize_script should be able to write log. The freshrss should be able to write log in root folder, or the folder should have good access right.