Skip to content

Commit e6f8161

Browse files
committed
fix bug #448
1 parent e4e173e commit e6f8161

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

assembly/bin/install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ SERVER_HOME=""
1414

1515
local_host="`hostname --fqdn`"
1616
LOCAL_IP=$(hostname -I)
17+
LOCAL_IP=${LOCAL_IP// /}
1718

1819
#To be compatible with MacOS and Linux
1920
txt=""
@@ -113,11 +114,11 @@ function replaceCommonIp() {
113114
fi
114115

115116
if [[ $GATEWAY_INSTALL_IP == "127.0.0.1" ]] || [ -z "$GATEWAY_INSTALL_IP" ]; then
116-
echo "GATEWAY_INSTALL_IP is equals $GATEWAY_INSTALL_IP ,we will change it to ip address"
117+
#echo "GATEWAY_INSTALL_IP is equals $GATEWAY_INSTALL_IP ,we will change it to ip address"
117118
GATEWAY_INSTALL_IP=$LOCAL_IP
118119
fi
119120
if [[ $EUREKA_INSTALL_IP == "127.0.0.1" ]] || [ -z "$EUREKA_INSTALL_IP" ]; then
120-
echo "EUREKA_INSTALL_IP is equals $EUREKA_INSTALL_IP ,we will change it to ip address"
121+
#echo "EUREKA_INSTALL_IP is equals $EUREKA_INSTALL_IP ,we will change it to ip address"
121122
EUREKA_INSTALL_IP=$LOCAL_IP
122123
fi
123124
}

0 commit comments

Comments
 (0)