Skip to content

Commit

Permalink
update startup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Dill committed Jan 24, 2018
1 parent 6ce879a commit 4d78fe9
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 21 deletions.
Binary file added Chapter03/network/dist/networkadmin.card
Binary file not shown.
4 changes: 2 additions & 2 deletions Chapter03/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter04/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter05/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter06/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter07/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter08/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter09/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter10/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter11/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
4 changes: 2 additions & 2 deletions Chapter12/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ function showStep ()
showStep "using execs from previous installation, stored in ${HLF_INSTALL_PATH}"
cd "${HLF_INSTALL_PATH}"
showStep "starting fabric"
~/fabric-tools/startFabric.sh
./startFabric.sh
#
# no longer required with hyperledger composer V0.15
# showStep "creating new composer profile (required with each restart)"
# ~/fabric-tools/createComposerProfile.sh
#
showStep "creating new PeerAdmin card (required with each restart)"
~/fabric-tools/createPeerAdminCard.sh
./createPeerAdminCard.sh
composer card list --name PeerAdmin@hlfv1
showStep "start up complete"
3 changes: 2 additions & 1 deletion fix_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

# make scripts correct for osx/unix

declare -a chapters=('Chapter01' 'Chapter02' 'Chapter03' 'Chapter04' 'Chapter05' 'Chapter06' 'Chapter07' 'Chapter08' 'Chapter09' 'Chapter10' 'Chapter11' 'Chapter12')
declare -a chapters=($(ls -d -- */))
echo "${chapters[@]}"
dos2unix `ls *.sh`
for i in "${chapters[@]}"
do
Expand Down

0 comments on commit 4d78fe9

Please sign in to comment.