Explorar el Código

nextcloud: add cron job

multi_domain
ßingen hace 6 años
padre
commit
5df5e38ea1
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. +2
    -0
      images/nextcloud/Dockerfile
  2. +2
    -0
      images/nextcloud/Dockerfile.template

+ 2
- 0
images/nextcloud/Dockerfile Ver fichero

@@ -50,6 +50,8 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
COPY backup.sh /etc/cron.daily/backup
RUN chmod +x /etc/cron.daily/backup

RUN (crontab -l 2>/dev/null; echo "*/5 * * * * php -f /var/www/nextcloud/cron.php") | crontab -u www-data -

#VOLUME ${NEXTCLOUD_DATA_PATH}
#VOLUME ${NEXTCLOUD_BACKUP_PATH}


+ 2
- 0
images/nextcloud/Dockerfile.template Ver fichero

@@ -50,6 +50,8 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
COPY backup.sh /etc/cron.daily/backup
RUN chmod +x /etc/cron.daily/backup

RUN (crontab -l 2>/dev/null; echo "*/5 * * * * php -f /var/www/nextcloud/cron.php") | crontab -u www-data -

#VOLUME ${NEXTCLOUD_DATA_PATH}
#VOLUME ${NEXTCLOUD_BACKUP_PATH}


Cargando…
Cancelar
Guardar