2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 18:16:39 +00:00

Remove trailing spaces in file xCAT/postscripts/enablesnmp

This commit is contained in:
GONG Jie 2017-12-31 23:59:59 +00:00
parent 0b488426db
commit a1685acd8e

View File

@ -17,7 +17,7 @@ fi
[ -f ${snmp_conf}.orig ] || cp $snmp_conf ${snmp_conf}.orig
#get snmp attribute
#NOTE: the length of SNMP Password has to be min=8
#NOTE: the length of SNMP Password has to be min=8
xCATSettingsSTART="xCAT settings START"
xCATSettingsEND="xCAT settings END"
xCATSettingsOID="xCAT customized"
@ -30,7 +30,7 @@ snmpauth=$SNMPAUTH
snmpc=$SNMPC
community="public"
#Get cumulus orig conf file
#Get cumulus orig conf file
grep "$xCATSettingsOID" $snmp_conf 2>&1 1> /dev/null
if [ $? -eq 0 ]; then
cp ${snmp_conf}.cumulus $snmp_conf
@ -79,7 +79,7 @@ elif [ -n "$snmppwd" ]; then
community=$snmppwd
elif [ -n "$snmpc" ]; then
community=$snmpc
fi
fi
echo "rocommunity $community default" >> $snmp_conf
echo "rocommunity $community default -V systemonly" >> $snmp_conf