summaryrefslogtreecommitdiffstats
path: root/extras/hook-scripts/start/post/S29CTDBsetup.sh
diff options
context:
space:
mode:
authorKrishnan Parthasarathi <kparthas@redhat.com>2012-06-13 11:27:54 +0530
committerVijay Bellur <vijay@gluster.com>2012-06-13 23:58:40 +0530
commita83d2539ec7dbb6663444e88560e65db64bc8076 (patch)
treeeabdfa9358b4695255322d7d424251ed406b1753 /extras/hook-scripts/start/post/S29CTDBsetup.sh
parentfb6f8c05d6fd804fe5d412149ebf7badf55a7b64 (diff)
hooks: Added fstab entry for samba share
- Add fstab entry for samba shares exported via hooks only on successfully mounting - Remove fstab entry for samba export in samba-stop script - Fixed an unintentional use of 'function-local' variable in shell script which relies on bash's variable scope internals. Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com> Signed-off-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'extras/hook-scripts/start/post/S29CTDBsetup.sh')
-rw-r--r--extras/hook-scripts/start/post/S29CTDBsetup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/extras/hook-scripts/start/post/S29CTDBsetup.sh b/extras/hook-scripts/start/post/S29CTDBsetup.sh
index 7e44df21c58..2567cf8307e 100644
--- a/extras/hook-scripts/start/post/S29CTDBsetup.sh
+++ b/extras/hook-scripts/start/post/S29CTDBsetup.sh
@@ -69,9 +69,9 @@ then
#expects ctdb service to manage smb
service smb stop
add_glusterfs_ctdb_options
- add_fstab_entry $VOL $CTDB_MNT
mkdir -p $CTDB_MNT
sleep 5
- mount -t glusterfs `hostname`:$VOL "$CTDB_MNT"
+ mount -t glusterfs `hostname`:$VOL "$CTDB_MNT" && \
+ add_fstab_entry $VOL $CTDB_MNT
chkconfig ctdb on
fi