summarylogtreecommitdiffstats
path: root/nextcloud.hook
diff options
context:
space:
mode:
authorGrey Christoforo2020-11-01 12:06:08 +0100
committerGrey Christoforo2020-11-01 12:06:08 +0100
commitd15014bc2e9b2e9ef56a589bb0b0da13f9369d1c (patch)
tree643b9e79eb20752ea80b8861e97dac83e523d6a5 /nextcloud.hook
parentbf0f0af796e4f3752c064125bef9c63d80cee43f (diff)
downloadaur-nextcloud-daily.tar.gz
resync with masater package
Diffstat (limited to 'nextcloud.hook')
-rw-r--r--nextcloud.hook13
1 files changed, 13 insertions, 0 deletions
diff --git a/nextcloud.hook b/nextcloud.hook
new file mode 100644
index 000000000000..0d02056688bb
--- /dev/null
+++ b/nextcloud.hook
@@ -0,0 +1,13 @@
+# Update Nextcloud when core or -apps are touched
+
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = nextcloud
+Target = nextcloud-app-*
+
+[Action]
+Description = Updating Nextcloud installation
+When = PostTransaction
+Exec = /usr/bin/runuser -u http -- /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade