[Gluster-devel] Installation in /var/lib/glusterd

Emmanuel Dreyfus manu at netbsd.org
Fri Aug 31 09:56:41 UTC 2012


Hi

I am testing 3.3.1qa2 and migration from 3.2.x. configure contains this:

if test ! -d /var/lib/glusterd && test -d /etc/glusterd ; then
  GF_INSTALL_VAR_LIB_GLUSTERD_TRUE=
  GF_INSTALL_VAR_LIB_GLUSTERD_FALSE='#'
else
  GF_INSTALL_VAR_LIB_GLUSTERD_TRUE='#'
  GF_INSTALL_VAR_LIB_GLUSTERD_FALSE=
fi

As I understand, the intent is to install in /var/lib/glusterd if
/etc/glusterd does not exist. It seems to me that the test is reversed,
and it fails to include ${prefix}. What about this?

if test -d /etc/glusterd -o -d ${prefix}/etc/glusterd ; then
  GF_INSTALL_VAR_LIB_GLUSTERD_TRUE='#'
  GF_INSTALL_VAR_LIB_GLUSTERD_FALSE=
else
  GF_INSTALL_VAR_LIB_GLUSTERD_TRUE=
  GF_INSTALL_VAR_LIB_GLUSTERD_FALSE='#'
fi



-- 
Emmanuel Dreyfus
manu at netbsd.org




More information about the Gluster-devel mailing list