summaryrefslogtreecommitdiffstats
path: root/geo-replication/src
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2015-06-24 18:30:18 +0530
committerVenky Shankar <vshankar@redhat.com>2015-06-24 23:54:30 -0700
commit9df8366174d57e3cd948d19efa9cdbadecfc012d (patch)
tree3871a4cffe16074725206534054335fcb60c1b39 /geo-replication/src
parent461c66eb6a5d647fd265b34a8045e54e017446e0 (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'. Change-Id: Ic2fe85e685016b383e38af0ea43c3f0628c16a32 BUG: 1235292 Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/11381 Tested-by: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Aravinda VK <avishwan@redhat.com>
Diffstat (limited to 'geo-replication/src')
-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"