From 96e24e01fa01144e784597c9dc3648c78da78a61 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 12 Jun 2012 19:17:41 +0530 Subject: glusterd: copy /etc/glusterd to /var/lib and remove /etc/glusterd instead of moving * Change default directory from /etc/glusterd to /var/lib/glusterd Change-Id: Iefa82e4fdb94ce5a84dfb40855c80e16e9ffcc40 BUG: 830218 Signed-off-by: Raghavendra Bhat Reviewed-on: http://review.gluster.com/3548 Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Anand Avati --- glusterfs.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'glusterfs.spec.in') diff --git a/glusterfs.spec.in b/glusterfs.spec.in index dd584b8252f..7b45825afd4 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -308,7 +308,8 @@ fi # Move legacy sysconf files to the correct sysconfdir if [ -d /etc/glusterd ]; then mkdir -p /var/lib - mv /etc/glusterd /var/lib/ + cp -a /etc/glusterd /var/lib + rm -rf /etc/glusterd ln -sf /var/lib/glusterd /etc/glusterd fi -- cgit