diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2016-12-06 13:38:21 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2016-12-08 08:49:33 -0800 |
commit | 58a58e706da73ee751b7cd98c23e6675667fefdb (patch) | |
tree | 6486d2a4820481a835add0d43ce5a9f36586c7a2 /extras/hook-scripts/start | |
parent | ff2314995b117b33d81beb6de7b043979c676aeb (diff) |
ganesha/scripts : find export id for already exported volume in S31ganesha-start.sh
Change-Id: Iada90ed215966d3f526fa20aa5359b67f25a6944
BUG: 1401822
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Reviewed-on: http://review.gluster.org/16037
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Reviewed-by: soumya k <skoduri@redhat.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'extras/hook-scripts/start')
-rwxr-xr-x | extras/hook-scripts/start/post/S31ganesha-start.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/hook-scripts/start/post/S31ganesha-start.sh b/extras/hook-scripts/start/post/S31ganesha-start.sh index 0e98ec24d19..90ba6bc73a5 100755 --- a/extras/hook-scripts/start/post/S31ganesha-start.sh +++ b/extras/hook-scripts/start/post/S31ganesha-start.sh @@ -112,6 +112,9 @@ then sed -i s/Export_Id.*/"Export_Id=$EXPORT_ID;"/ \ $GANESHA_DIR/exports/export.$VOL.conf echo "%include \"$GANESHA_DIR/exports/export.$VOL.conf\"" >> $CONF1 + else + EXPORT_ID=$(grep ^[[:space:]]*Export_Id $GANESHA_DIR/exports/export.$VOL.conf |\ + awk -F"[=,;]" '{print $2}' | tr -d '[[:space:]]') fi export_add $VOL fi |