From 596c0ab6b398a911f0093deb7f2cbf4287eb2c35 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Wed, 24 Jun 2015 18:30:18 +0530 Subject: [PATCH 137/190] 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: 1235225 Change-Id: I14beb1810b110804714acf714567580d34783690 Reviewed-on: http://review.gluster.org/11381 Reviewed-on: http://review.gluster.org/11382 Reviewed-by: Aravinda VK Signed-off-by: Kotresh HR Reviewed-on: https://code.engineering.redhat.com/gerrit/51602 Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- geo-replication/src/set_geo_rep_pem_keys.sh | 1 + 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 4f613da..ae23f4f 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" -- 1.7.1