From e79edf35178f2558d6afb262444294380b76d740 Mon Sep 17 00:00:00 2001 From: Meghana Madhusudhan Date: Wed, 6 May 2015 09:58:11 +0530 Subject: NFS-Ganesha : Do not empty global config file when cluster is torn The global config file will need new blocks to support client lock recovery. Current cleanup function empties the entire file. Deleting only "include" lines in the config file. Change-Id: I21f09e30a738d2ba01861ce480ecf906667d887b BUG: 1218854 Signed-off-by: Meghana Madhusudhan Reviewed-on: http://review.gluster.org/10592 Tested-by: Gluster Build System Reviewed-by: soumya k Reviewed-by: jiffin tony Thottan Reviewed-by: Kaleb KEITHLEY --- extras/ganesha/scripts/ganesha-ha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/ganesha') diff --git a/extras/ganesha/scripts/ganesha-ha.sh b/extras/ganesha/scripts/ganesha-ha.sh index 950aeb0362a..2535f8b1a44 100755 --- a/extras/ganesha/scripts/ganesha-ha.sh +++ b/extras/ganesha/scripts/ganesha-ha.sh @@ -198,7 +198,7 @@ cleanup_ganesha_config () rm -rf ${HA_CONFDIR}/exports/*.conf rm -rf ${HA_CONFDIR}/.export_added rm -rf /etc/cluster/cluster.conf* - > $CONF + sed -i /.conf/d $CONF } -- cgit