Join the community today
Become a Member

Upgrade Enhancements to check-for-updates.sh Script: Telegram Notifications & YUM Check

Discussion in 'Feature Requests & Suggestions' started by iaTa, Feb 25, 2025.

  1. iaTa

    iaTa Member

    62
    10
    8
    Mar 26, 2018
    Ratings:
    +16
    Local Time:
    8:51 AM
    I’ve added some new functionality to your check-for-updates.sh script, with some assistance from Grok.

    First, I added a Telegram notification option using a bot. With a bot token and chat ID configured, the script can now send real-time updates straight to a Telegram chat. I use Telegram for most of my notifications so this is really handy.

    Second, I included a simplified YUM update check (based on cpcheck.inc) to send a notification when system updates are available. This can be triggered with a new command-line option, 'yum', or the existing option 'all'.

    Both additions are running smoothly in my testing, and if you approve it would be awesome if you could include something like this in the official release.


    Link to script: https://gist.github.com/
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    6:51 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Interesting additions, will have to check it out and see. Reminds me of tgsend.sh script I wrote 4yrs ago https://github.com/centminmod/telegram-send :D

    The only issue I have with Telegram is that isn't that easy for noobs to get the bot set up.
     
  3. iaTa

    iaTa Member

    62
    10
    8
    Mar 26, 2018
    Ratings:
    +16
    Local Time:
    8:51 AM
    Oh nice, I'll have a look through it.

    It's pretty easy to setup bots with BotFather - just follow the step by step instructions. I have bots setup for all sorts. Just noticed that you mention most of this on your telegram-send page :)

    Regarding the yum update check, on my old server I used to do a daily yum-cron check/update but I would prefer to do the updates myself and also receive the notifications via Telegram rather than email.
     
    Last edited: Feb 25, 2025