GitCatcher is a Bash script that automates the process of checking for and executing the latest script from a specified Git repository on every hour. It's designed to simplify the task of keeping your system's scripts up to date.
- Automatically clones or updates a specified Git repository on every hour.
- Checks for new commits and executes the latest script from the repository.
- Easily configurable with the repository URL and script file.
- Logs execution for reference.
Before using GitCatcher, ensure you have the following:
- Linux-based operating system.
- Git installed on your system.
Follow these steps to set up GitCatcher on your system:
-
Clone this repository to your local system:
git clone https://github.com/rently-com/GitCatcher
-
Change into the GitCatcher directory:
cd GitCatcher
-
Run the initialization script as root to set up the necessary directories and cron job:
sudo bash init.sh
-
The initialization script will prompt you to enter you email id. Provide the offficial mail id when prompted.
for example:
Enter your rently email address: [email protected]
GitCatcher will then create the necessary directories, set up a cron job to periodically run the synchronization script, and initiate the first synchronization.
Once GitCatcher is set up,
-
The script will run automatically on every hour.
-
It will check for new commits in the specified Git repository.
-
If new commits are found, it will pull the latest changes.
-
It will execute the script specified in the repository (modify your_script.sh in the script to match your use case).
-
Execution information will be logged to
/var/log/gitcatcher.log
(you can customize this log location