mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
add go/runfabcar.sh
Signed-off-by: Acmefocus <107723772@qq.com>
This commit is contained in:
parent
9291154f78
commit
e2c47af2bd
1 changed files with 15 additions and 0 deletions
15
fabcar/go/runfabcar.sh
Executable file
15
fabcar/go/runfabcar.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
ENV_DAL=`echo $DISCOVERY_AS_LOCALHOST`
|
||||
|
||||
echo "ENV_DAL:"$DISCOVERY_AS_LOCALHOST
|
||||
|
||||
if [ "$ENV_DAL" != "true" ]
|
||||
then
|
||||
export DISCOVERY_AS_LOCALHOST=true
|
||||
fi
|
||||
|
||||
echo "DISCOVERY_AS_LOCALHOST="$DISCOVERY_AS_LOCALHOST
|
||||
|
||||
echo "run fabcar..."
|
||||
|
||||
go run fabcar.go
|
||||
Loading…
Reference in a new issue