Update nodemgmt-scripts.sh
This commit is contained in:
@@ -580,7 +580,7 @@ STATUS(){
|
|||||||
echo -en " ${pname}$spc: "
|
echo -en " ${pname}$spc: "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ "${partition}" =~ *"root"* ]] && prt='/' || prt=${partition}
|
[[ "${partition}" == *"root"* ]] && prt="/" || prt=${partition}
|
||||||
freespace=`${NCMD} df -hPBM ${prt} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1
|
freespace=`${NCMD} df -hPBM ${prt} | awk '{print $4}' |tail -1|sed 's/M$//g'` >/dev/null 2>&1
|
||||||
|
|
||||||
if [ "${freespace}" -le "1000" ]; then
|
if [ "${freespace}" -le "1000" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user