Commit 6022759b by Jason Song

compatibility for cd portal envionment

parent 46931840
......@@ -2,6 +2,11 @@
SERVICE_NAME=apollo-adminservice
cd `dirname $0`/..
if [[ ! -f $SERVICE_NAME".jar" && -d current ]]; then
cd current
fi
if [[ -f $SERVICE_NAME".jar" ]]; then
./$SERVICE_NAME".jar" stop
fi
......@@ -5,6 +5,10 @@ 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
......@@ -12,4 +16,4 @@ fi
ln $PATH_TO_JAR $SERVICE_NAME".jar"
./$SERVICE_NAME".jar" start
exit 0;
\ No newline at end of file
exit 0;
......@@ -2,6 +2,11 @@
SERVICE_NAME=apollo-configservice
cd `dirname $0`/..
if [[ ! -f $SERVICE_NAME".jar" && -d current ]]; then
cd current
fi
if [[ -f $SERVICE_NAME".jar" ]]; then
./$SERVICE_NAME".jar" stop
fi
\ No newline at end of file
fi
......@@ -5,6 +5,10 @@ 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
......@@ -12,4 +16,4 @@ fi
ln $PATH_TO_JAR $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