aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud.cron
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-06-25 02:19:49 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-06-25 02:42:48 +0200
commit09debd9f9820565692f47e22a38fa31e117d9e58 (patch)
tree96efa11ef42beffa8cabbfdff6e995d4fff5f7d5 /community/nextcloud/nextcloud.cron
parent2a9da16c79f4bb48136b0e0a87958a1e22b697ef (diff)
downloadaports-09debd9f9820565692f47e22a38fa31e117d9e58.tar.bz2
aports-09debd9f9820565692f47e22a38fa31e117d9e58.tar.xz
community/nextcloud: add cron job
Diffstat (limited to 'community/nextcloud/nextcloud.cron')
-rw-r--r--community/nextcloud/nextcloud.cron6
1 files changed, 6 insertions, 0 deletions
diff --git a/community/nextcloud/nextcloud.cron b/community/nextcloud/nextcloud.cron
new file mode 100644
index 0000000000..096ce65a5d
--- /dev/null
+++ b/community/nextcloud/nextcloud.cron
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Run only when nextcloud service is started.
+if rc-service nextcloud -q status >/dev/null 2>&1; then
+ su nextcloud -s /bin/sh -c 'php7 -f /usr/share/webapps/nextcloud/cron.php'
+fi