From 9df8366174d57e3cd948d19efa9cdbadecfc012d Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Wed, 24 Jun 2015 18:30:18 +0530 Subject: 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'. Change-Id: Ic2fe85e685016b383e38af0ea43c3f0628c16a32 BUG: 1235292 Signed-off-by: Kotresh HR Reviewed-on: http://review.gluster.org/11381 Tested-by: NetBSD Build System Reviewed-by: Aravinda VK --- geo-replication/src/set_geo_rep_pem_keys.sh | 1 + 1 file changed, 1 insertion(+) 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" -- cgit