diff --git a/first-network/byfn.sh b/first-network/byfn.sh index 78f173c1..3f3eee98 100755 --- a/first-network/byfn.sh +++ b/first-network/byfn.sh @@ -201,7 +201,9 @@ function generateCerts (){ echo "##########################################################" 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..."