@@ -10,7 +10,7 @@ port=$(grep "server\.port" $applicationFile |awk -F "=" '{print $2}')
1010function reloadAddressForWeb() {
1111 export WEB_PID=` ps aux| grep " BuildToolApplication" | grep -v grep| awk ' {print $2}' | head -1`
1212 if [ -n " $WEB_PID " ]; then
13- curl http://localhost:${port} /reloadAddress
13+ curl http://localhost:${port} /weid/weid-build-tools/ reloadAddress
1414 fi
1515}
1616
@@ -106,21 +106,28 @@ function clean_data()
106106
107107function check_node_cert(){
108108
109- cd ${SOURCE_CODE_DIR} /resources
110- if [ " ${blockchain_fiscobcos_version} " = " 1" ]; then
109+ cd ${SOURCE_CODE_DIR} /resources
110+ if [ " ${blockchain_fiscobcos_version} " = " 1" ]; then
111111 if [ ! -f ca.crt -o ! -f client.keystore ]; then
112- echo " ERROR : fisco bcos version is 1.3, ca.crt and client.keystore are needed."
113- exit 1
114- fi
112+ echo " ERROR : fisco bcos version is 1.3, ca.crt and client.keystore are needed."
113+ exit 1
114+ fi
115115 elif [ " ${blockchain_fiscobcos_version} " = " 2" ]; then
116- if [ ! -f ca.crt -o ! -f node.crt -o ! -f node.key ]; then
117- echo " ERROR : fisco bcos version is 2.0. ca.crt, node.crt and node.key are needed."
118- exit 1
116+ if [ " ${encrypt_type} " = " 0" ]; then
117+ if [ ! -f ca.crt -o ! -f node.crt -o ! -f node.key ]; then
118+ echo " ERROR : fisco bcos version is 2.0. encrypt type is ECDSA, ca.crt, node.crt and node.key are needed."
119+ exit 1
120+ fi
121+ else
122+ if [ ! -f gmca.crt -o ! -f gmsdk.crt -o ! -f gmsdk.key -o ! -f gmensdk.crt -o ! -f gmensdk.key ]; then
123+ echo " ERROR : fisco bcos version is 2.0, encrypt type is SM2, gmca.crt, gmsdk.crt, gmsdk.key, gmensdk.crt and gmensdk.key are needed."
124+ exit 1
125+ fi
119126 fi
120127 else
121128 echo " the version : ${blockchain_fiscobcos_version} is not supported, we only support FISCO BCOS 1.3 and 2.0."
122129 exit 1
123- fi
130+ fi
124131}
125132
126133function main()
0 commit comments