[nc] Add temporary queue processing from admin

This should run scripts every minute and delete them on correct execution.
mejoras_instalacion
Evilham 2022-08-01 23:30:56 +02:00
parent ac66814947
commit d26df2779e
No known key found for this signature in database
GPG Key ID: AE3EE30D970886BF
2 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,10 @@ RUN mkdir -p \
COPY supervisord.conf / 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 ENV NEXTCLOUD_UPDATE=1
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]

View File

@ -0,0 +1,5 @@
#/bin/sh
find "${NC_MAIL_QUEUE_FOLDER:-/nc-mail-queue}" -name '*.sh' -exec sh -c \
'cd /var/www/html && {} && rm {}' \
';'