summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xextras/hook-scripts/start/post/S31ganesha-start.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/hook-scripts/start/post/S31ganesha-start.sh b/extras/hook-scripts/start/post/S31ganesha-start.sh
index a657b00055f..9ca07e5a8d6 100755
--- a/extras/hook-scripts/start/post/S31ganesha-start.sh
+++ b/extras/hook-scripts/start/post/S31ganesha-start.sh
@@ -113,7 +113,10 @@ function start_ganesha()
cut -d"=" -f2)
if [ "$ganesha_value" = "on" -a "$is_exported" = "no" ]
then
- write_conf $VOL > $GANESHA_DIR/exports/export.$VOL.conf
+ if [ ! -e $GANESHA_DIR/exports/export.$VOL.conf ]
+ then
+ write_conf $VOL > $GANESHA_DIR/exports/export.$VOL.conf
+ fi
start_ganesha $VOL
else
exit 0