summaryrefslogtreecommitdiffstats
path: root/extras/hook-scripts/start/post
diff options
context:
space:
mode:
Diffstat (limited to 'extras/hook-scripts/start/post')
-rwxr-xr-xextras/hook-scripts/start/post/S30samba-start.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/extras/hook-scripts/start/post/S30samba-start.sh b/extras/hook-scripts/start/post/S30samba-start.sh
index 92ddaf4e37f..5d586ee9fae 100755
--- a/extras/hook-scripts/start/post/S30samba-start.sh
+++ b/extras/hook-scripts/start/post/S30samba-start.sh
@@ -127,5 +127,7 @@ find_config_info
if ! grep --quiet "\[gluster-$VOL\]" ${CONFIGFILE} ; then
add_samba_share $VOL
- sighup_samba
+else
+ sed -i '/\[gluster-'"$VOL"'\]/,/^$/!b;/available = no/d' ${CONFIGFILE}
fi
+sighup_samba