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

Conversation

pmarques
Copy link
Contributor

@pmarques pmarques commented Feb 1, 2015

Hi,

When I start a cluster with only one node (DOCKER_RIAK_CS_CLUSTER_SIZE=1) the credentials printed are not correct. This is just a fix to wait some time in that case. It also could be done using pooling until admin_key change from admin-key, what do you think?

@@ -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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants