FS#69725 - [nextcloud] Unexpected behaviour when running /usr/bin/occ in fish shell
Attached to Project:
Community Packages
Opened by Alexander Kuntsch (akuntsch) - Sunday, 21 February 2021, 08:41 GMT
Last edited by David Runge (dvzrv) - Sunday, 21 February 2021, 13:14 GMT
Opened by Alexander Kuntsch (akuntsch) - Sunday, 21 February 2021, 08:41 GMT
Last edited by David Runge (dvzrv) - Sunday, 21 February 2021, 13:14 GMT
|
Details
Description:
The new /usr/bin/occ wrapper script uses $USER to allow overriding the default nextcloud user. In fish shell the $USER variable is set to the current user per default which means that /usr/bin/occ will not use the default user specified in the script without unsetting $USER first. Steps to reproduce: Run fish in a clean environment (env -i fish), then run 'echo $USER'. The output should be the current user which will be picked up by the /usr/bin/occ script. |
This task depends upon
Closed by David Runge (dvzrv)
Sunday, 21 February 2021, 13:14 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with nextcloud 21.0.0-6
Sunday, 21 February 2021, 13:14 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with nextcloud 21.0.0-6
Please check whether nextcloud >= 21.0.0-6 in [community-testing] fixes this for you.
There, overrides can be done with NEXTCLOUD_USER, NEXTCLOUD_PHP and NEXTCLOUD_PHP_CONFIG.
NOTE: Please be aware, that that version also introduces other changes, that are necessary to fix the situation with the config directory [1] (basically reverting to pre 21.0.0 behavior in regards to location/ symlinking of the configuration).
[1] https://bugs.archlinux.org/task/69718#comment196955