You are not logged in.
Pages: 1
Anyone who has Nextcloud running, installed through pacman, has ran into the following issue:
Update Nextcloud, or a Nextcloud app and the Nextcloud installation itself needs to be updated. This can be done via the browser, but that is not that neat, I think.
The other way is to do the following:
sudo -u http /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade
This, to me, is much better. Even more, since we can automate it, after Nextcloud, or a Nextcloud-app is updated or installed.
This is where alpm-hooks come into play.
Create a file, called:
/etc/pacman.d/hooks/nextcloud.hook
And write the following in it:
# Update Nextcloud when core or -apps are touched
[Trigger]
Operation = Install
Operation = Upgrade
Operation = Remove
Type = Package
Target = nextcloud
Target = nextcloud-app-*
[Action]
Description = Updating Nextcloud installation
When = PostTransaction
Exec = 'sudo -u http /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade'
Maybe something to add to the Nextcloud package?
Offline
Maybe something to add to the Nextcloud package?
Open a flyspray if you haven't yet done so.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Euhh, what's a flyspray?
Update: Ahh, a bug report. Found it!
Well, I was reading the guid for issuing bugs, and I thought it is not a bug, so it does not belong there.
I'll file a report there.
Last edited by Bubbel (2017-09-13 19:53:01)
Offline
Select feature request from the pull down to have a maintainer review your idea.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Done. Thanks for the info.
Offline
Pages: 1