fabric-samples/basic-network/init.sh
Sudheesh Singanamalla cf79cd1dc1 [FAB-7584] Removes copy of creds to keystore
The basic-network sample consists of a initialization script which
removes any content inside the hfc-key-store and later copies the
content from creds to the keystore. However this creds directory
doesnot exist or is ever created in the sample execution.

Change-Id: Ia3d07ad78875328f6798290d3f0ab3098b9e85fc
Signed-off-by: Sudheesh Singanamalla <sudheesh95@gmail.com>
2018-01-03 10:46:57 +05:30

14 lines
277 B
Bash
Executable file

#!/bin/bash
#
# Copyright IBM Corp All Rights Reserved
#
# SPDX-License-Identifier: Apache-2.0
#
# Exit on first error, print all commands.
set -ev
# delete previous creds
rm -rf ~/.hfc-key-store/*
# copy peer admin credentials into the keyValStore
mkdir -p ~/.hfc-key-store