summaryrefslogtreecommitdiffstats
path: root/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user
diff options
context:
space:
mode:
authorSaravanakumar Arumugam <sarumuga@redhat.com>2017-08-02 11:46:59 +0530
committerSaravanakumar Arumugam <sarumuga@redhat.com>2017-08-02 17:30:18 +0530
commitd301d192ce98f40ffb683ea61d9b1ee90aee60b4 (patch)
tree07ce370ef808ff36fbdf42f62935c59b851c23ce /gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user
parente5da35f7f83b2be0b78aadc1056a5dd9d77f4835 (diff)
downloadgluster-d301d192ce98f40ffb683ea61d9b1ee90aee60b4.tar.gz
gluster-d301d192ce98f40ffb683ea61d9b1ee90aee60b4.tar.bz2
gluster-d301d192ce98f40ffb683ea61d9b1ee90aee60b4.tar.xz
gluster-d301d192ce98f40ffb683ea61d9b1ee90aee60b4.zip
Rename variables
GLUSTER_VOLUMES -> S3_ACCOUNT GLUSTER_USER -> S3_USER GLUSTER_PASSWORD -> S3_PASSWORD Signed-off-by: Saravanakumar Arumugam <sarumuga@redhat.com>
Diffstat (limited to 'gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user')
-rwxr-xr-xgluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user12
1 files changed, 6 insertions, 6 deletions
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