diff options
author | Raghavendra Bhat <raghavendra@redhat.com> | 2012-06-12 19:17:41 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-07-04 00:18:42 -0700 |
commit | 96e24e01fa01144e784597c9dc3648c78da78a61 (patch) | |
tree | 2ce5fd6636d3c01188f26a09ec22990f6eecaa7c /glusterfs.spec.in | |
parent | 34a06d3c13aba1a22680e070b08284f2d7c69890 (diff) |
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 <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.com/3548
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 3 |
1 files changed, 2 insertions, 1 deletions
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 |