File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ SERVER_HOME=""
1414
1515local_host=" ` hostname --fqdn` "
1616LOCAL_IP=$( hostname -I)
17+ LOCAL_IP=${LOCAL_IP// / }
1718
1819# To be compatible with MacOS and Linux
1920txt=" "
@@ -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}
You can’t perform that action at this time.
0 commit comments