diff options
author | venkata edara <redara@redhat.com> | 2017-07-31 16:17:49 +0530 |
---|---|---|
committer | venkata edara <redara@redhat.com> | 2017-07-31 16:28:01 +0530 |
commit | 438b216ffa44c8da6ba8cd5930862694a8e3a2e6 (patch) | |
tree | 99f32d10e60b28430c53fbe1c81ac219fa0f4657 /gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh | |
parent | 4757dd977452d15baae91d46a7895cd3d5b7863e (diff) | |
download | gluster-438b216ffa44c8da6ba8cd5930862694a8e3a2e6.tar.gz gluster-438b216ffa44c8da6ba8cd5930862694a8e3a2e6.tar.bz2 gluster-438b216ffa44c8da6ba8cd5930862694a8e3a2e6.tar.xz gluster-438b216ffa44c8da6ba8cd5930862694a8e3a2e6.zip |
Added S3 authentication changes
changed the proxy-server.conf to enable authentication and scripts to add user
Signed-off-by: venkata edara <redara@redhat.com>
Diffstat (limited to 'gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh')
-rw-r--r-- | gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh b/gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh index dfb891d..9e9c60e 100644 --- a/gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh +++ b/gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh @@ -1,12 +1,14 @@ #!/bin/bash # To update gluster volume name in swift-volumes, used by swift-gen-builders.service -if [ -z "$GLUSTER_VOLUMES" ]; then - echo "You need to set GLUSTER_VOLUMES env variable" +if [[ -z "$GLUSTER_VOLUMES" || -z "$GLUSTER_USER" || -z "$GLUSTER_PASSWORD" ]]; then + echo "You need to set GLUSTER_VOLUMES, GLUSTER_USER, GLUSTER_PASSWORD env variable" exit 1 else echo "GLUSTER_VOLUMES env variable is set. Update in swift-volumes" sed -i.bak '/^GLUSTER_VOLUMES=/s/=.*/='\""$GLUSTER_VOLUMES"\"'/' /etc/sysconfig/swift-volumes + sed -i.bak '/^GLUSTER_USER=/s/=.*/='\""$GLUSTER_USER"\"'/' /etc/sysconfig/swift-volumes + sed -i.bak '/^GLUSTER_PASSWORD=/s/=.*/='\""$GLUSTER_PASSWORD"\"'/' /etc/sysconfig/swift-volumes fi # Hand off to CMD |