diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src/Makefile.am')
-rw-r--r-- | xlators/mgmt/glusterd/src/Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/Makefile.am b/xlators/mgmt/glusterd/src/Makefile.am index 485350b3d1e..79e10a3459e 100644 --- a/xlators/mgmt/glusterd/src/Makefile.am +++ b/xlators/mgmt/glusterd/src/Makefile.am @@ -34,7 +34,8 @@ CLEANFILES = install-data-hook: if GF_INSTALL_VAR_LIB_GLUSTERD - $(mkdir_p) /var/lib/ - (stat /etc/glusterd && mv /etc/glusterd /var/lib/) || true; - (ln -sf /var/lib/glusterd /etc/glusterd) || true; + $(mkdir_p) $(localstatedir)/lib/ + (stat $(sysconfdir)/glusterd && \ + mv $(sysconfdir)/glusterd $(localstatedir)/lib/) || true; + (ln -sf $(localstatedir)/lib/glusterd $(sysconfdir)/glusterd) || true; endif |