Skip to content
This repository has been archived by the owner on Jun 1, 2020. It is now read-only.

Fix creds extraction when 1 use only one node #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions bin/start-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ if [ -f $INSECURE_KEY_FILE ]; then
echo " Riak CS credentials:"
echo

# If starting only one node we need to wait a litle bit for keys
if [ ${DOCKER_RIAK_CS_CLUSTER_SIZE} -eq 1 ] ; then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review, but I believe this line should be:

if [[ ${DOCKER_RIAK_CS_CLUSTER_SIZE} -eq 1 ]] ; then

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no problem since I use '-eq', but add double quotes should be more secure.

sleep 30
fi

for field in admin_key admin_secret ; do
echo -n " ${field}: "

Expand Down