提交 6022759b 编写于 作者: J Jason Song

compatibility for cd portal envionment

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册