summaryrefslogtreecommitdiff
path: root/user/nextcloud/nextcloud.cron
diff options
context:
space:
mode:
Diffstat (limited to 'user/nextcloud/nextcloud.cron')
-rw-r--r--user/nextcloud/nextcloud.cron6
1 files changed, 6 insertions, 0 deletions
diff --git a/user/nextcloud/nextcloud.cron b/user/nextcloud/nextcloud.cron
new file mode 100644
index 000000000..21a5b566a
--- /dev/null
+++ b/user/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 'php -f /usr/share/webapps/nextcloud/cron.php'
+fi