Commit ea23b0a6 by Jason Song

Merge pull request #165 from nobodyiam/cd-portal-script

update portal script and add jdk1.8 identifier
parents 307f17e0 97ad363b
......@@ -2,6 +2,12 @@
SERVICE_NAME=apollo-portal
cd `dirname $0`/..
if [[ ! -f $SERVICE_NAME".jar" && -d current ]]; then
cd current
fi
if [[ -f $SERVICE_NAME".jar" ]]; then
chmod a+x $SERVICE_NAME".jar"
./$SERVICE_NAME".jar" stop
fi
\ No newline at end of file
fi
......@@ -5,11 +5,16 @@ PATH_TO_JAR=$SERVICE_NAME"-"$VERSION".jar"
cd `dirname $0`/..
if [[ ! -f PATH_TO_JAR && -d current ]]; then
cd current
fi
if [[ -f $SERVICE_NAME".jar" ]]; then
rm -rf $SERVICE_NAME".jar"
fi
ln $PATH_TO_JAR $SERVICE_NAME".jar"
chmod a+x $SERVICE_NAME".jar"
./$SERVICE_NAME".jar" start
exit 0;
\ No newline at end of file
exit 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment