diff options
author | Amar Tumballi <amar@gluster.com> | 2012-05-15 22:12:53 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-05-29 22:08:14 -0700 |
commit | 1c2624a3ff8a0d72bc88b1b869c255e3ca4c395d (patch) | |
tree | 6d46b2ada4eeb3131b61c642844fb8a3c348dc8a /glusterfs.spec.in | |
parent | c31447bda4e5e0b8e40689db9635fc5c0aa04136 (diff) |
glusterd: change working-directory from /etc/glusterd to /var/lib/glusterd
as it is changed in RPM based install (using spec file), makes sense to do
it everywhere, even in source install
Change-Id: Ibe5ebd860b1529aca295b79d683a3b2e6797506c
Signed-off-by: Amar Tumballi <amar@gluster.com>
BUG: 824231
Reviewed-on: http://review.gluster.com/3338
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r-- | glusterfs.spec.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in index 0c2b5b344ce..8d017484010 100644 --- a/glusterfs.spec.in +++ b/glusterfs.spec.in @@ -304,8 +304,9 @@ fi # Move legacy sysconf files to the correct sysconfdir if [ -d /etc/glusterd ]; then - cp -a /etc/glusterd /var/lib/ - mv /etc/glusterd /etc/glusterd.rpmsave + mkdir -p /var/lib + mv /etc/glusterd /var/lib/ + ln -sf /var/lib/glusterd /etc/glusterd fi if [ -d /var/lib/glusterd/vols ]; then |