Commit 97ad363b by Jason Song

update portal script and add jdk1.8 identifier

parent 7b1a9d2b
......@@ -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