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=""
14
14
15
15
local_host=" ` hostname --fqdn` "
16
16
LOCAL_IP=$( hostname -I)
17
+ LOCAL_IP=${LOCAL_IP// / }
17
18
18
19
# To be compatible with MacOS and Linux
19
20
txt=" "
@@ -113,11 +114,11 @@ function replaceCommonIp() {
113
114
fi
114
115
115
116
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"
117
118
GATEWAY_INSTALL_IP=$LOCAL_IP
118
119
fi
119
120
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"
121
122
EUREKA_INSTALL_IP=$LOCAL_IP
122
123
fi
123
124
}
You can’t perform that action at this time.
0 commit comments