From 112c654ecef57be269c2c1dda81bf96c36e0b9da Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Fri, 27 Oct 2023 11:58:46 +0800 Subject: [PATCH] fix cron --- .gitignore | 4 ++-- docker/apphub/Dockerfile | 2 +- docker/apphub/config/cron | 2 +- docker/apphub/script/update.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 5b3498a2..1eb3a0e0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,6 @@ logs .venv .vscode .pytest_cache -.apphub/swagger-ui -.apphub/apphub.egg-info +apphub/swagger-ui +apphub/apphub.egg-info cli/__pycache__ \ No newline at end of file diff --git a/docker/apphub/Dockerfile b/docker/apphub/Dockerfile index b398c936..714b61bd 100644 --- a/docker/apphub/Dockerfile +++ b/docker/apphub/Dockerfile @@ -1,4 +1,4 @@ -# modify time: 202310271129, you can modify here to trigger Docker Build action +# modify time: 2023102712, you can modify here to trigger Docker Build action FROM python:3.10-bullseye AS buildstage LABEL maintainer="Websoft9" diff --git a/docker/apphub/config/cron b/docker/apphub/config/cron index 478c92ea..95b672d5 100644 --- a/docker/apphub/config/cron +++ b/docker/apphub/config/cron @@ -1 +1 @@ -* * * * * /websoft9/script/update.sh \ No newline at end of file +0 2 * * * /websoft9/script/update.sh \ No newline at end of file diff --git a/docker/apphub/script/update.sh b/docker/apphub/script/update.sh index aefc4a92..a61b43b5 100644 --- a/docker/apphub/script/update.sh +++ b/docker/apphub/script/update.sh @@ -4,4 +4,4 @@ echo "$(date) - Compare remote version and local version" | tee -a /var/log/supervisord.log -echo "Download " +echo "$(date) - Download remote packages and replace local data" | tee -a /var/log/supervisord.log