moved old code to modules, cleanup
This commit is contained in:
23
modules/patch_snmp.sh
Normal file
23
modules/patch_snmp.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user