Skip to content

Commit

Permalink
[FAB-5221] generateCerts should delete crypto
Browse files Browse the repository at this point in the history
It's possible to run byfn -m generate multiple
times depending on how you go through the
tutorials, start/stop the network, etc.
The crypto-config folder is deleted when
running byfn -m down and that will stay,
but now each time generateCerts is run the
cyrpto-config folder will be deleted as well.

Change-Id: Ie3851debd76ff0c50c84e14fbca56de2a28bd825
Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
  • Loading branch information
mastersingh24 committed Nov 5, 2017
1 parent 733ce9f commit 7c23985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions first-network/byfn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ function generateCerts (){
echo "##### Generate certificates using cryptogen tool #########"
echo "##########################################################"

if [ -d "crypto-config" ]; then
rm -Rf crypto-config
fi
cryptogen generate --config=./crypto-config.yaml
if [ "$?" -ne 0 ]; then
echo "Failed to generate certificates..."
Expand Down

0 comments on commit 7c23985

Please sign in to comment.