diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 390fbca4..8c8a5e3b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1714,9 +1714,9 @@ SERVICE(){ # fi # if [ "${GO}" == "true" ]; then if [ $sethost == true ]; then - nodename=${NM_HOSTNAMES['${3}']}; + nodename=${NM_HOSTNAMES[${3}]} else - nodename="${NM_NODETYPES[$NTYPE]}-Node${nid}"; + nodename="${NM_NODETYPES[$NTYPE]}-Node${nid}" fi if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then nip='localhost '