Summary: | www-apps/nextcloud: occ lacks executable bit | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Dennis Lamm <expeditioneer> |
Component: | Current packages | Assignee: | Bernard Cafarelli <voyageur> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | bertrand, flow, gentoo, voyageur |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Dennis Lamm
2023-10-14 17:08:46 UTC
I am skeptical that making the occ script executable is the right thing to do, as it should be often run as the user under which nextcloud runs, for example 'apache' or 'nginx'. Otherwise you may end up with the wrong file permissions as a result of occ operating on the filesystem. Furthermore, making it a symlink in /usr/bin is not feasible as long as nextcloud is slotted. And this alone is no reason to unslot nextcloud. @voyageur what is your stance on this? Indeed, the script should be run as correct user (system dependant), also global symlinks would also be complicated to handle, in case you have multiple versions installed (for testing etc). And for the script itself, IIRC I just left the executable bit out as upstream does not set it, also recommending in their doc to use "sudo -u $user $php_version $path_to_occ": https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#http-user-label |