This repository has been archived on 2025-08-21. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hugo-mistergeek/scripts/README.md
2025-08-19 23:48:30 +02:00

1.0 KiB

Website Update Script

This script triggers the builder container to update the website content using Docker Compose.

Usage

  1. Make the script executable:

    chmod +x scripts/update-website.sh
    
  2. Run the script manually to test it:

    ./scripts/update-website.sh
    
  3. 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>&1
    

    This 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 docker and docker compose commands must be available in the system's PATH