2023-10-27 02:41:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-10-30 08:21:32 +00:00
|
|
|
echo "$(date) - Compare remote version and local version." | tee -a /var/log/supervisord.log
|
2023-10-27 02:41:24 +00:00
|
|
|
|
2023-10-30 08:21:32 +00:00
|
|
|
echo "$(date) - Download remote packages and replace local data." | tee -a /var/log/supervisord.log
|
2023-10-30 08:55:03 +00:00
|
|
|
bash /websoft9/script/update_zip.sh --package_name "media-latest.zip" --sync_to "/websoft9/media"
|
|
|
|
bash /websoft9/script/update_zip.sh --package_name "library-latest.zip" --sync_to "/websoft9/library"
|
2023-10-30 07:27:57 +00:00
|
|
|
|
|
|
|
echo "$(date) - Success to update library and media."
|