diff --git a/util/postinstall.sh.in b/util/postinstall.sh.in index 51f2e6e4..f98ba43e 100755 --- a/util/postinstall.sh.in +++ b/util/postinstall.sh.in @@ -226,7 +226,7 @@ gather_sphinx_data() { if [ $INDEXER = "/usr/bin/indexer" ]; then SPHINXCFG="/etc/sphinx.conf"; fi - if [ -f /etc/sphinxsearch/sphinx.conf || -f /etc/sphinxsearch/sphinx.conf.sample ]; then SPHINXCFG="/etc/sphinxsearch/sphinx.conf"; fi + if test -f /etc/sphinxsearch/sphinx.conf || test -f /etc/sphinxsearch/sphinx.conf.sample ; then SPHINXCFG="/etc/sphinxsearch/sphinx.conf"; fi askNonBlank "Please enter the path of sphinx.conf" "$SPHINXCFG" SPHINXCFG=$response