MT#8067 check nodename no hostname to exclude ourselves

vseva/8419
Victor Seva 12 years ago
parent cd344a0d60
commit d9e6ba263d

@ -90,6 +90,7 @@ fi
## environment variables {{{
export PN="ngcpcfg"
export HNAME="$(hostname)"
export NNAME="$(ngcp-nodename)"
# avoid warnings by perl script complaining about locales
export LANG=C

@ -57,8 +57,8 @@ remote_check() {
log_debug "hostlist = $hostlist"
for host in $hostlist ; do
log_debug "check $host == $HNAME"
if [[ "$host" == "$HNAME" ]] ; then
log_debug "check $host == $NNAME"
if [[ "$host" == "$NNAME" ]] ; then
continue
fi

Loading…
Cancel
Save