diff options
author | Saravanakumar <sarumuga@redhat.com> | 2017-06-29 17:58:56 +0530 |
---|---|---|
committer | Saravanakumar <sarumuga@redhat.com> | 2017-06-29 18:03:40 +0530 |
commit | 3e33c9640d2b4b2d15a21483c34bb48845fce7bf (patch) | |
tree | 740a0189b03506e48447b993d88a1149253e3ea4 /gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh | |
parent | 8e29c3a6f749837e694a6cb031b8740935a62dc3 (diff) | |
download | gluster-3e33c9640d2b4b2d15a21483c34bb48845fce7bf.tar.gz gluster-3e33c9640d2b4b2d15a21483c34bb48845fce7bf.tar.bz2 gluster-3e33c9640d2b4b2d15a21483c34bb48845fce7bf.tar.xz gluster-3e33c9640d2b4b2d15a21483c34bb48845fce7bf.zip |
rename docker-gluster-swift as docker-gluster-s3 and the top
level directory gluster-object as gluster-s3object
Update README and test scripts to reflect name change.
Signed-off-by: Saravanakumar <sarumuga@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 | 13 |
1 files changed, 13 insertions, 0 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 new file mode 100644 index 0000000..dfb891d --- /dev/null +++ b/gluster-s3object/CentOS/docker-gluster-s3/update_gluster_vol.sh @@ -0,0 +1,13 @@ +#!/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" + 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 +fi + +# Hand off to CMD +exec "$@" |