aboutsummaryrefslogtreecommitdiffstats
path: root/community/nextcloud/nextcloud.cron
diff options
context:
space:
mode:
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