🇫🇷 Version Française 🇫🇷
A little script that will notify you on your discord server, here is what you can expect for discord :
And for gotify :
For help recovering your discord webhook url see below :
"Copy Webhook URL" will get you the url that needs to be put at the 3rd line of checker.sh, in the "token" variable.If like me you would rather use gotify, see here to recover the token that also needs to be put at the 3rd line of the script.
-
Installation
sudo apt install jq curl wget cd && mkdir image_checker && cd image_checker wget https://raw.githubusercontent.com/methatronc/checker/main/checker.sh chmod +x checker.sh su [the user that will execute this cron and that MUST NOT have any special privileges since we are retrieving external data] crontab -e
And add the following line for instance :
0 5 * * * /home/[your_username]/image_checker/checker.sh > /home/[your_username]/image_checker/cron.log 2>&1
-
Now you will have your daily report at 5am on your discord server if any image currently used on the host executing the cron gets updated.
-
Do not forget to specify the gotify/discord token at the 3rd line or else nothing will happen.
-
If you have anything to add please do, some images might need other particular treatment.