fix: enable snmpd after updating configuration
This commit is contained in:
@@ -229,6 +229,7 @@ SNMPDConfig() {
|
||||
cummunityname=$(whiptail --title "SNMP Community name" --inputbox "" 0 30 "${cummunityname}" 3>&1 1>&2 2>&3)
|
||||
sed -i "s/public/${cummunityname}/" /etc/snmp/snmpd.conf
|
||||
sed -i "s/127.0.0.1,\[::1\]/0.0.0.0/" /etc/snmp/snmpd.conf
|
||||
systemctl enable snmpd
|
||||
systemctl restart snmpd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user