summaryrefslogtreecommitdiffstats
path: root/geo-replication
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2015-06-24 18:30:18 +0530
committerVenky Shankar <vshankar@redhat.com>2015-06-25 10:24:51 -0700
commitbdf54579c5cfcc9feb7dc824a5a58255ae14007b (patch)
tree92fb46a21f7399ee6c03e3ee8432fcfd02728f62 /geo-replication
parent30e2976cd6f56c661e8e3d97eec2ba23937ff23e (diff)
geo-rep: Fix glusterd working directory
Mountbroker setup in geo-replication requires the script 'set_geo_rep_pem_keys.sh to be run manually out of gluster context. Hence the ${GLUSTERD_WORKDIR} is never set. So getting glusterd working dir using 'gluster system:: getwd'. BUG: 1235297 Reviewed-On: http://review.gluster.org/11381 Change-Id: If708ad4294ee726ba7769b8052a0b3a25f93df2a Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/11382 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Saravanakumar Arumugam <sarumuga@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'geo-replication')
-rwxr-xr-xgeo-replication/src/set_geo_rep_pem_keys.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/geo-replication/src/set_geo_rep_pem_keys.sh b/geo-replication/src/set_geo_rep_pem_keys.sh
index 4f613da28df..ae23f4ff0c6 100755
--- a/geo-replication/src/set_geo_rep_pem_keys.sh
+++ b/geo-replication/src/set_geo_rep_pem_keys.sh
@@ -12,6 +12,7 @@ function main()
user=$1
master_vol=$2
slave_vol=$3
+ GLUSTERD_WORKDIR=$(gluster system:: getwd)
if [ "$user" == "" ]; then
echo "Please enter the user's name"