[nc] Add temporary queue processing from admin
This should run scripts every minute and delete them on correct execution.mejoras_instalacion
parent
ac66814947
commit
d26df2779e
|
@ -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"]
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#/bin/sh
|
||||||
|
|
||||||
|
find "${NC_MAIL_QUEUE_FOLDER:-/nc-mail-queue}" -name '*.sh' -exec sh -c \
|
||||||
|
'cd /var/www/html && {} && rm {}' \
|
||||||
|
';'
|
Loading…
Reference in New Issue