removed [[ TEST ]] && action form for if [[ TEST ]]; then action; fi for compatibility
This commit is contained in:
@@ -16,9 +16,10 @@ patch_snmp()
|
||||
/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 &&
|
||||
if [[ -e /lib/systemd/system/snmpd.service ]]; then
|
||||
installfile snmpd.service /lib/systemd/system/snmpd.service
|
||||
systemctl daemon-reload
|
||||
fi
|
||||
svc_restart snmpd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user