1.0 KiB
1.0 KiB
Website Update Script
This script triggers the builder container to update the website content using Docker Compose.
Usage
-
Make the script executable:
chmod +x scripts/update-website.sh -
Run the script manually to test it:
./scripts/update-website.sh -
To set up a cron job, add the following line to your crontab (edit with
crontab -e):0 2 * * * /home/acid/Documents/mistergeek/scripts/update-website.sh >> /home/acid/Documents/mistergeek/logs/update-website.log 2>&1This will run the update script every day at 2:00 AM.
Alternatively, you can run the update script every 6 hours:
0 */6 * * * /home/acid/Documents/mistergeek/scripts/update-website.sh >> /home/acid/Documents/mistergeek/logs/update-website.log 2>&1
Logs
Logs are stored in /home/acid/Documents/mistergeek/logs/update-website.log.
Requirements
- Docker
- Docker Compose
- The
dockeranddocker composecommands must be available in the system's PATH