@@ -1,7 +1,7 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
#定义程序启动的Jar包前缀 | #定义程序启动的Jar包前缀 | ||||
APP_JAR_PREFIX=deploy-gateway- | |||||
APP_JAR=deploy-gateway- | |||||
#获取当前的根目录 | #获取当前的根目录 | ||||
APP_HOME=$(cd `dirname $0`;cd ../; pwd) | APP_HOME=$(cd `dirname $0`;cd ../; pwd) | ||||
@@ -9,9 +9,6 @@ APP_HOME=$(cd `dirname $0`;cd ../; pwd) | |||||
#System路径 | #System路径 | ||||
APP_LIB_PATH=$APP_HOME/lib | APP_LIB_PATH=$APP_HOME/lib | ||||
#获取Peer节点的启动Jar包 | |||||
APP_JAR=$(ls $APP_LIB_PATH | grep $APP_JAR_PREFIX) | |||||
#APP_JAR的具体路径 | #APP_JAR的具体路径 | ||||
APP_JAR_PATH=$APP_LIB_PATH/$APP_JAR | APP_JAR_PATH=$APP_LIB_PATH/$APP_JAR | ||||
@@ -1,7 +1,7 @@ | |||||
#!/bin/bash | #!/bin/bash | ||||
#定义程序启动的Jar包前缀 | #定义程序启动的Jar包前缀 | ||||
APP_JAR_PREFIX=deploy-peer- | |||||
APP_JAR=deploy-peer- | |||||
#获取当前的根目录 | #获取当前的根目录 | ||||
APP_HOME=$(cd `dirname $0`;cd ../; pwd) | APP_HOME=$(cd `dirname $0`;cd ../; pwd) | ||||
@@ -9,9 +9,6 @@ APP_HOME=$(cd `dirname $0`;cd ../; pwd) | |||||
#System路径 | #System路径 | ||||
APP_SYSTEM_PATH=$APP_HOME/system | APP_SYSTEM_PATH=$APP_HOME/system | ||||
#获取Peer节点的启动Jar包 | |||||
APP_JAR=$(ls $APP_SYSTEM_PATH | grep $APP_JAR_PREFIX) | |||||
#APP_JAR的具体路径 | #APP_JAR的具体路径 | ||||
APP_JAR_PATH=$APP_SYSTEM_PATH/$APP_JAR | APP_JAR_PATH=$APP_SYSTEM_PATH/$APP_JAR | ||||