diff --git a/dd-apps/docker/nextcloud/Dockerfile b/dd-apps/docker/nextcloud/Dockerfile index f21832f..137c8c3 100644 --- a/dd-apps/docker/nextcloud/Dockerfile +++ b/dd-apps/docker/nextcloud/Dockerfile @@ -66,6 +66,10 @@ RUN mkdir -p \ COPY supervisord.conf / +# Temporary replacement for a real queue +RUN echo '*/1 * * * * /nc-queue.sh' >> /etc/crontabs/www-data +COPY nc-queue.sh / + ENV NEXTCLOUD_UPDATE=1 CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] diff --git a/dd-apps/docker/nextcloud/nc-queue.sh b/dd-apps/docker/nextcloud/nc-queue.sh new file mode 100755 index 0000000..70e5fc4 --- /dev/null +++ b/dd-apps/docker/nextcloud/nc-queue.sh @@ -0,0 +1,5 @@ +#/bin/sh + +find "${NC_MAIL_QUEUE_FOLDER:-/nc-mail-queue}" -name '*.sh' -exec sh -c \ + 'cd /var/www/html && {} && rm {}' \ + ';'