updated to work with rhel 8/9

This commit is contained in:
2022-11-19 16:09:22 -05:00
parent f4888ecd06
commit c0024db275

View File

@@ -16,12 +16,12 @@ if [ -f /etc/debian_version ]; then
apt update
apt install -y snmpd curl
elif [ -f /etc/redhat-release ]; then
yum install -y net-snmp net-snmp-utils
dnf install -y net-snmp net-snmp-utils
firewall-cmd --zone=public --add-service=snmp --permanent
firewall-cmd --reload
else
echo "You are running an unsupported OS"
echo "Support OSes: Debian, Ubuntu, CentOS"
echo "Support OSes: Debian, Ubuntu, CentOS/Rocky 8/9"
echo "Your OS: ${OS} ${OS_VER}"
exit
fi