diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/Makefile.am | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index fbaf7b9f9a1..5dae93d8778 100644 --- a/configure.ac +++ b/configure.ac @@ -566,7 +566,7 @@ AC_SUBST(INCLUDES) AM_CONDITIONAL([GF_DARWIN_HOST_OS], test "${GF_HOST_OS}" = "GF_DARWIN_HOST_OS") -AM_CONDITIONAL([GF_INSTALL_VAR_LIB_GLUSTERD], test ! -d /var/lib/glusterd && test -d /etc/glusterd ) +AM_CONDITIONAL([GF_INSTALL_VAR_LIB_GLUSTERD], test ! -d ${localstatedir}/lib/glusterd && test -d ${sysconfdir}/glusterd ) AC_OUTPUT 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 |