Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't tell people to run chmod -R 755 on their install if update fails #14412

Merged
merged 1 commit into from May 17, 2019

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented May 5, 2019

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?

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?
@tsteur tsteur added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels May 5, 2019
@tsteur tsteur added this to the 3.10.0 milestone May 5, 2019
@fdellwing
Copy link
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.

@diosmosis diosmosis merged commit f879244 into 3.x-dev May 17, 2019
@diosmosis diosmosis deleted the 13628 branch May 17, 2019 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't tell people to run chmod -R 755 on their install if update fails
3 participants