Error 'Command not found' when sname is used

When a node is configured with -sname the REMSH_NAME_PART argument should be defined with using command 'hostname' but error occurs due extra space
This commit is contained in:
Habibutsu 2014-05-27 11:22:24 +03:00
parent 755c6023d1
commit 12ca1fb126

View file

@ -100,7 +100,7 @@ case "$REMSH_NAME" in
*)
REMSH_NAME_PART="$REMSH_NAME"
if [ "$REMSH_TYPE" = "-sname" ]; then
REMSH_HOSTNAME_PART= "$HOSTNAME"
REMSH_HOSTNAME_PART="$HOSTNAME"
else
# -name type, check if `hostname` is fqdn
if [ "$MAYBE_FQDN_HOSTNAME" = "$HOSTNAME" ]; then