This commit is contained in:
qiaofeng1227 2023-10-30 16:21:32 +08:00
parent e796df82f7
commit 6a348cb994
3 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
# modify time: 202310301531, you can modify here to trigger Docker Build action
# modify time: 202310301631, you can modify here to trigger Docker Build action
FROM python:3.10-slim-bullseye
LABEL maintainer="Websoft9<help@websoft9.com>"

View file

@ -1 +1 @@
15,20,25 * * * * /websoft9/script/update.sh
15,20,25,30,35 * * * * /websoft9/script/update.sh

View file

@ -1,9 +1,9 @@
#!/bin/bash
echo "$(date) - Compare remote version and local version" | tee -a /var/log/supervisord.log
echo "$(date) - Compare remote version and local version." | tee -a /var/log/supervisord.log
echo "$(date) - Download remote packages and replace local data" | tee -a /var/log/supervisord.log
bash update_zip.sh --package_name "media.zip" --sync_to "/websoft9/media"
bash update_zip.sh --package_name "docker-library.zip" --sync_to "/websoft9/library"
echo "$(date) - Download remote packages and replace local data." | tee -a /var/log/supervisord.log
bash /websoft9/script/update_zip.sh --package_name "media.zip" --sync_to "/websoft9/media"
bash /websoft9/script/update_zip.sh --package_name "docker-library.zip" --sync_to "/websoft9/library"
echo "$(date) - Success to update library and media."