Skip to content

Commit 721135e

Browse files
committed
Update install.sh
1 parent c4a52e7 commit 721135e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

assembly/bin/install.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ SERVER_IP=""
1313
SERVER_HOME=""
1414

1515
local_host="`hostname --fqdn`"
16-
LOCAL_IP=$(hostname -I)
17-
LOCAL_IP=${LOCAL_IP// /}
16+
LOCAL_IP=$(hostname -I | awk '{print $1}')
1817

1918
#To be compatible with MacOS and Linux
2019
txt=""
@@ -228,19 +227,12 @@ fi
228227
##Install dss projects
229228
function installDssProject() {
230229
echo "step2:update config"
231-
# if [ "$DSS_INSTALL_HOME" != "" ]
232-
# then
233-
# rm -rf $DSS_INSTALL_HOME
234-
# fi
235-
#echo ""
236-
#echo "-----------------DSS install start--------------------"
237230
SERVER_HOME=$DSS_INSTALL_HOME
238231
if [ "$SERVER_HOME" == "" ]
239232
then
240233
export SERVER_HOME=${workDir}/DSSInstall
241234
fi
242235
if [ -d $SERVER_HOME ] && [ "$SERVER_HOME" != "$workDir" ]; then
243-
rm -r $SERVER_HOME-bak
244236
echo "mv $SERVER_HOME $SERVER_HOME-bak"
245237
mv $SERVER_HOME $SERVER_HOME-bak
246238
fi

0 commit comments

Comments
 (0)