moved old code to modules, cleanup

This commit is contained in:
fatalerrors
2021-06-18 12:02:01 +02:00
parent 8bb69f931d
commit 1a964640d9
8 changed files with 108 additions and 51 deletions

23
modules/patch_snmp.sh Normal file
View 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