Files
init.sh/modules/patch_snmp.sh
2021-06-18 12:02:01 +02:00

24 lines
533 B
Bash

# Supervision
export VER_patch_snmp="0.0.1"
patch_snmp()
{
backupdist /etc/snmp/snmpd.conf /etc/default/snmpd /lib/systemd/system/snmpd.service \
/etc/init.d/snmpd
installfile snmpd.conf /etc/snmp/snmpd.conf
installfile snmpd.init /etc/init.d/snmpd
[[ -e /lib/systemd/system/snmpd.service ]] &&
installfile snmpd.service /lib/systemd/system/snmpd.service &&
systemctl daemon-reload
svc_restart snmpd
}
precheck_patch_snmp()
{
:
}
export -f patch_snmp
export -f precheck_patch_snmp