Fixed the Start-up Failure in the Dualstack Env
[holmes/rule-management.git] / rulemgt-standalone / src / main / assembly / bin / run.sh
index b710217..983ed62 100644 (file)
@@ -57,7 +57,7 @@ else
     sed -i "s|url:.*|url: jdbc:postgresql://$URL_JDBC/$DB_NAME|" "$main_path/conf/rulemgt.yml"
 fi
 
-export SERVICE_IP=`hostname -i`
+export SERVICE_IP=`hostname -i | awk '{print $1}'`
 echo SERVICE_IP=${SERVICE_IP}
 
 if [ ! -z ${TESTING} ] && [ ${TESTING} = 1 ]; then