From a1685acd8efd1ca63617f2ca7fce82c4c49d87ff Mon Sep 17 00:00:00 2001 From: GONG Jie Date: Sun, 31 Dec 2017 23:59:59 +0000 Subject: [PATCH] Remove trailing spaces in file xCAT/postscripts/enablesnmp --- xCAT/postscripts/enablesnmp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/enablesnmp b/xCAT/postscripts/enablesnmp index 2d0010955..c4b51df49 100755 --- a/xCAT/postscripts/enablesnmp +++ b/xCAT/postscripts/enablesnmp @@ -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