@tsteur opened this Pull Request on May 5th 2019 Member

fix #13628

For not writable directory it generated eg this:

chown -R foo:localaccounts /var/www/matomo
find /var/www/matomo/tmp -type f -exec chmod 644 {} \;
find /var/www/matomo/tmp -type d -exec chmod 755 {} \;

for auto update it also adds execute permission for console

chmod 755 /var/www/matomo/console

Not sure if any other file needs permission to execute? Couldn't think of any right now. Of course the find commands above they don't change the permission of any symlinks or so. Not sure what users possibly have in there and if it could create some issue. Could extend the find command to something like -type f or -type l.

Also generally not sure if find is compatible like this on all *nix.

@Findus23 maybe any thoughts?

@fdellwing commented on May 6th 2019 Contributor

Also generally not sure if find is compatible like this on all *nix.

I can't say anything about all *nix, but find will work on every Posix compliant (and compatibel) systems.

This Pull Request was closed on May 17th 2019
Powered by GitHub Issue Mirror