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