Update check

This commit is contained in:
Eduardo Silva
2024-02-23 14:23:22 -03:00
parent 578f7a63f9
commit 03a9c12696
24 changed files with 349 additions and 16 deletions

16
cron/Dockerfile-cron Normal file
View File

@@ -0,0 +1,16 @@
FROM ubuntu:latest
# Instalar cron
RUN apt-get update && apt-get install -y cron curl
# Adicionar seus scripts de cron
COPY cron_tasks /etc/cron.d/cron_tasks
# Dar permissões apropriadas
RUN chmod 0644 /etc/cron.d/cron_tasks
# Criar um arquivo de log para armazenar os resultados do cron
RUN touch /var/log/cron.log
# Executar o cron em primeiro plano
CMD cron -f

1
cron/cron_tasks Normal file
View File

@@ -0,0 +1 @@
* * * * * root /usr/bin/curl -s http://wireguard-webadmin:8000/api/cron_check_updates/ >> /var/log/cron.log 2>&1