Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-26 16:36:14 -05:00
parent 7c4a8f3b20
commit 72c7624c20

View File

@@ -580,7 +580,7 @@ STATUS(){
echo -en " ${pname}$spc: "
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
if [ "${freespace}" -le "1000" ]; then