From d301d192ce98f40ffb683ea61d9b1ee90aee60b4 Mon Sep 17 00:00:00 2001 From: Saravanakumar Arumugam Date: Wed, 2 Aug 2017 11:46:59 +0530 Subject: Rename variables GLUSTER_VOLUMES -> S3_ACCOUNT GLUSTER_USER -> S3_USER GLUSTER_PASSWORD -> S3_PASSWORD Signed-off-by: Saravanakumar Arumugam --- .../CentOS/docker-gluster-s3/gluster-swift-add-user | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user') diff --git a/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user b/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user index 59eb1b2..0b4262b 100755 --- a/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user +++ b/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user @@ -1,13 +1,13 @@ #!/bin/bash if [ "$#" -lt 3 ]; then - echo "Incorrect args. invoke gluster-swift-add-user $GLUSTER_USER $GLUSTER_PASSWORD $GLUSTER_VOLUMES" + echo "Incorrect args. invoke gluster-swift-add-user $S3_USER $S3_PASSWORD $S3_ACCOUNT" exit 1 else - GLUSTER_USER=$1 - GLUSTER_PASSWORD=$2 - GLUSTER_VOLUMES=$(echo $3 | cut -d" " -f1) + S3_USER=$1 + S3_PASSWORD=$2 + S3_ACCOUNT=$(echo $3 | cut -d" " -f1) sleep 5 gswauth-prep -A http://0.0.0.0:8080/auth -K gswauthkey - gswauth-add-account -K gswauthkey $GLUSTER_VOLUMES - gswauth-add-user -K gswauthkey -a $GLUSTER_VOLUMES $GLUSTER_USER $GLUSTER_PASSWORD + gswauth-add-account -K gswauthkey $S3_ACCOUNT + gswauth-add-user -K gswauthkey -a $S3_ACCOUNT $S3_USER $S3_PASSWORD fi -- cgit v1.2.3