Update nodemgmt-scripts.sh
This commit is contained in:
@@ -357,7 +357,7 @@ NODEUPDATE(){
|
|||||||
NODE="${NM_HOSTNAMES[${nip}]} [${nip}]"
|
NODE="${NM_HOSTNAMES[${nip}]} [${nip}]"
|
||||||
|
|
||||||
if [ ${noup} -eq 0 ]; then
|
if [ ${noup} -eq 0 ]; then
|
||||||
c=0; spca=''; spc1=${cw}-${#NODE}; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done
|
c=0; spca=''; spc1=`expr ${cw} - ${#NODE}`; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done
|
||||||
echo -en "Updating ${NODE}${spca}"
|
echo -en "Updating ${NODE}${spca}"
|
||||||
fi
|
fi
|
||||||
betacheck=$(BETACHECK)
|
betacheck=$(BETACHECK)
|
||||||
@@ -687,12 +687,9 @@ DOWNLIST(){
|
|||||||
toterrtime=$(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${ditem}.down))
|
toterrtime=$(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/${ditem}.down))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
c=0; spc=''; spc1=${cw}-${#itemname}
|
c=0; spc=''; spc1=`expr ${cw} - ${#itemname}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
c=0; spca=''; spc1=`expr ${cw} - ${#itemtype}`; until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done
|
||||||
c=0; spca=''; spc1=${cw1}-${#itemtype}
|
c=0; spc2=''; spc1=`expr ${cw} - ${#host}`; until [ $c = ${spc1} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
|
||||||
until [ $c = ${spc1} ]; do spca="${spca} "; c=`expr $c + 1`; done
|
|
||||||
c=0; spc2=''; spc1=${cw2}-${#host}
|
|
||||||
until [ $c = ${spc1} ]; do spc2="${spc2} "; c=`expr $c + 1`; done
|
|
||||||
time=$(SHOW_TIME ${toterrtime})
|
time=$(SHOW_TIME ${toterrtime})
|
||||||
if [ "${1}" == "report" ]; then
|
if [ "${1}" == "report" ]; then
|
||||||
echo -e "${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${idsCL[Default]}"
|
echo -e "${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${host}${spc2}${time}${idsCL[Default]}"
|
||||||
@@ -784,7 +781,7 @@ MAINTENANCE_MODE(){
|
|||||||
|
|
||||||
for srvc in "${!srvcs}"; do
|
for srvc in "${!srvcs}"; do
|
||||||
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel="${item_number})"; fi
|
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel="${item_number})"; fi
|
||||||
c=0; cw=${PRI_CW}; spc=''; spc1=${cw}-${#NM_SERVICE_DESC[${srvc}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
c=0; spc=''; spc1=`expr ${PRI_CW} - ${#NM_SERVICE_DESC[${srvc}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${isel} ${idsCL[White]}${NM_SERVICE_DESC[${srvc}]}${spc}${idsCL[Default]}: "
|
echo -en "${isel} ${idsCL[White]}${NM_SERVICE_DESC[${srvc}]}${spc}${idsCL[Default]}: "
|
||||||
|
|
||||||
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
||||||
@@ -803,7 +800,7 @@ MAINTENANCE_MODE(){
|
|||||||
|
|
||||||
for docker in "${!dockers}"; do
|
for docker in "${!dockers}"; do
|
||||||
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel="${item_number})"; fi
|
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel="${item_number})"; fi
|
||||||
c=0; cw=${PRI_CW}; spc=''; spc1=`expr ${cw} - ${#NM_DOCKER_DESC[${docker}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
c=0; spc=''; spc1=`expr ${PRI_CW} - ${#NM_DOCKER_DESC[${docker}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${isel} ${idsCL[White]}${NM_DOCKER_DESC[${docker}]}$spc${idsCL[Default]}: "
|
echo -en "${isel} ${idsCL[White]}${NM_DOCKER_DESC[${docker}]}$spc${idsCL[Default]}: "
|
||||||
|
|
||||||
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
||||||
@@ -835,7 +832,7 @@ MAINTENANCE_MODE(){
|
|||||||
DIVIDER false green
|
DIVIDER false green
|
||||||
for rcheck in "${!repls}"; do
|
for rcheck in "${!repls}"; do
|
||||||
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel="${item_number})"; fi
|
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel="${item_number})"; fi
|
||||||
ic=0; cw=${PRI_CW}; spc=''; spc1=${cw}-${#NM_REPL_DESC[${rcheck}]}; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
c=0; spc=''; spc1=`expr ${PRI_CW} - ${#NM_REPL_DESC[${rcheck}]}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||||
echo -en "${isel} ${idsCL[White]}${NM_REPL_DESC[${rcheck}]}${spc}${idsCL[Default]}: "
|
echo -en "${isel} ${idsCL[White]}${NM_REPL_DESC[${rcheck}]}${spc}${idsCL[Default]}: "
|
||||||
|
|
||||||
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user