summaryrefslogtreecommitdiffstats
path: root/gluster-s3object/CentOS/docker-gluster-s3/gluster-swift-add-user
diff options
context:
space:
mode:
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