From 0c3d8a709dabf169c2f32a585a454c4c791b41af Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Tue, 26 Jul 2016 01:43:43 +0100 Subject: [PATCH] add cron job --- root/defaults/nextcloud | 1 + root/etc/cont-init.d/40-config | 3 +++ root/etc/services.d/cron/run | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 root/defaults/nextcloud create mode 100644 root/etc/services.d/cron/run diff --git a/root/defaults/nextcloud b/root/defaults/nextcloud new file mode 100644 index 00000000..8bc040fe --- /dev/null +++ b/root/defaults/nextcloud @@ -0,0 +1 @@ +*/15 * * * * s6-setuidgid abc php -f /config/www/nextcloud/cron.php diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index 8507762e..64821298 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -3,3 +3,6 @@ # permissions chown abc:abc /config /data chown -R abc:abc /var/lib/nginx + +# set cronjob +crontab /defaults/nextcloud diff --git a/root/etc/services.d/cron/run b/root/etc/services.d/cron/run new file mode 100644 index 00000000..a1b27f4a --- /dev/null +++ b/root/etc/services.d/cron/run @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bash + +/usr/sbin/crond -f -S -l 0 -c /etc/crontabs