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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
David Runge (dvzrv)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
Comment by Alexander Kuntsch (akuntsch) - Sunday, 21 February 2021, 08:48 GMT
Sorry, forgot to mention the nextcloud version in the description: nextcloud 21.0.0-4
Comment by David Runge (dvzrv) - Sunday, 21 February 2021, 09:52 GMT
@akuntsch: Thanks for the report!

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
Comment by Alexander Kuntsch (akuntsch) - Sunday, 21 February 2021, 11:43 GMT
Works out of the box with nextcloud 21.0.0-6. I guess this can be closed then unless you want to wait until it hits [community].

Loading...