Browse Source

check the zip and sdk.jar;

tags/1.4.0^2
zhaoguangwei 4 years ago
parent
commit
aa2628f62a
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      deploy/docker-demo/src/main/docker/script/start.sh

+ 9
- 5
deploy/docker-demo/src/main/docker/script/start.sh View File

@@ -2,10 +2,15 @@

cd $RELEASE_DIR

# invoke it once again;
#gw_pid_file="./gw/bin/PID.log"
#if [ ! -f gw_pid_file ] ; then
# echo "get the PID.log, only to start the peer and gateway."
# check the files;
peer_file="./jdchain-peer-$RELEASE_VERSION.RELEASE.zip"
gw_file="./jdchain-gateway-$RELEASE_VERSION.RELEASE.zip"
sdk_file="./docker-sdk-$RELEASE_VERSION.RELEASE.jar"
if [[ ! -f $peer_file ]] || [[ ! -f $gw_file ]] || [[ ! -f $sdk_file ]] ; then
echo "not find $peer_file or $gw_file or $sdk_file in the $RELEASE_DIR, please check the image of jdchain-demo:$RELEASE_VERSION."
exit 1
fi

unzip -o conf.zip

for i in `seq 0 3`
@@ -16,7 +21,6 @@ cd $RELEASE_DIR

unzip -n -d ./gw jdchain-gateway-$RELEASE_VERSION.RELEASE.zip
chmod +x ./gw/bin/*
#fi

sh ./peer0/bin/peer-startup.sh
sh ./peer1/bin/peer-startup.sh


Loading…
Cancel
Save