Update nodemgmt-scripts.sh
This commit is contained in:
@@ -766,7 +766,7 @@ MAINTENANCE_MODE(){
|
||||
for nip in "${!hosts}"; do
|
||||
if [ ${item_number} -lt 10 ]; then isel=" ${item_number})"; elif [ ${item_number} -lt 100 ]; then isel=" ${item_number})"; else isel=" ${item_number})"; fi
|
||||
MSG="${NM_HOSTNAMES[${nip}]} [${nip}]"
|
||||
c=0; spc=''; spc1=`expr ${PRI_CW} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
c=0; spc=''; spc1=`expr ${PRI_CW} + 2 - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
|
||||
echo -en "${isel} ${idsST[Bold]}${idsCL[LightCyan]}${MSG}${idsST[Reset]}${spc}${idsCL[Default]}: "
|
||||
|
||||
echo -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
||||
@@ -783,7 +783,7 @@ MAINTENANCE_MODE(){
|
||||
|
||||
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
|
||||
c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#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 -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
||||
@@ -802,7 +802,7 @@ MAINTENANCE_MODE(){
|
||||
|
||||
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
|
||||
c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#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 -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
||||
@@ -831,7 +831,7 @@ MAINTENANCE_MODE(){
|
||||
DIVIDER . green ${DV_LEN}
|
||||
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
|
||||
c=0; spc=''; spc1=`expr ${PRI_CW} + 4 - ${#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 -e "${idsCL[LightGreen]}here${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user