-
Notifications
You must be signed in to change notification settings - Fork 1
/
Update.sh
executable file
·34 lines (22 loc) · 894 Bytes
/
Update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#
echo
echo "#####################################################"
echo "##### Install Multitoken System #########"
echo "#####################################################"
echo
# re-generate bna
echo "##### Re-Generate BNA #########"
composer archive create --sourceType dir --sourceName . -a ./build/multitokentest.bna
# install business network
echo "##### Install business network #########"
composer network install --card PeerAdmin@hlfv1 --archiveFile ./build/multitokentest.bna
# list installed networks
echo "##### List installed networks #########"
composer archive list -a ./build/multitokentest.bna
# Start business network
echo "##### Update business network #########"
composer network upgrade -c PeerAdmin@hlfv1 -n multitokentest -V 0.0.14
# test if stuffs are cool
echo "##### Test: ping #########"
composer network ping --card admin@multitokentest