FS#55769 - [nextcloud] failed run pacman hook
Attached to Project:
Community Packages
Opened by Gustavo Alvarez (sl1pkn07) - Wednesday, 27 September 2017, 14:30 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 03 October 2017, 11:12 GMT
Opened by Gustavo Alvarez (sl1pkn07) - Wednesday, 27 September 2017, 14:30 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 03 October 2017, 11:12 GMT
|
Details
[2017-09-27 16:25] [PACMAN] Running 'pacman --color auto
-Syu community/nextcloud'
[2017-09-27 16:25] [ALPM] transaction started [2017-09-27 16:25] [ALPM] upgraded nextcloud (12.0.2-1 -> 12.0.3-1) [2017-09-27 16:25] [ALPM] transaction completed [2017-09-27 16:25] [ALPM] running 'nextcloud.hook'... [2017-09-27 16:25] [ALPM-SCRIPTLET] llamada a execv fallida (No existe el fichero o el directorio) traduction: file or directory not found |
This task depends upon
[2017-09-28 03:21] [ALPM] running 'nextcloud.hook'...
[2017-09-28 03:21] [ALPM-SCRIPTLET] call to execv failed (No such file or directory)
FS#55625it is is actually completely broken, hooks are exec'ed and you cannot use a bash string like 'sudo -u http /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade'The hook also requires sudo to be installed...
That is *a* fix, yes... but I don't see the need for a script or an optdepends. alpm-hooks(5) specifies e.g. the "Depends = sudo" key, or preferably you would simply use `su` provided by util-linux as part of base and base-devel and required by mkinitcpio and systemd. So however you do it there is no need to test for `which sudo`. Just run /usr/bin/su http -c 'command'.
EDIT: replace su with runuser also from util-linux. /usr/bin/runuser -u http -- command
(thanks dreisner)
The hook is a good idee, but in my case, I use a different user for my nextcloud installation, so the script is going to fail. I guess I'll just disable the hook for now.
Thanks.
This hook will fail every time for me.
Also: gd is needed for nextcloud and in a default php installation this is deactivated, so this will fail, too, when freshly installing.
I'm not sure this hook is a good idea.
the hook fails on each of those customizations