diff --git a/Sphinx.sh b/Sphinx.sh index 5b0cc28..3f23075 100755 --- a/Sphinx.sh +++ b/Sphinx.sh @@ -63,11 +63,11 @@ then echo -e "2. Past version : 0.9.9\n" ;; '--install') - if [ ! -e /dbs ];then `mkdir /dbs`; dbs="Success"; fi + if [ ! -e /dbs ];then echo -e "/dbs not exist !"; exit; fi if [ ! -e tmp ];then `mkdir tmp`; fi if [ ! -e /dbs/sphinx ];then echo -e "/dbs/sphinx Doesn't exist !"; exit; fi - if [ ! -e /dbs/sphinxlog ];then `mkdir /dbs/sphinxlog`; exit; fi - if [ ! -e /usr/local/sphinx ];then `mkdir /dbs/sphinx`; exit; fi + if [ ! -e /usr/local/sphinx ];then `mkdir /dbs/sphinx`; fi + if [ ! -e /dbs/sphinxlog ];then `mkdir /dbs/sphinxlog`; fi if [ ! -e /init.d/sphinxsearch ];then `cp initscript/sphinxsearch /etc/init.d/ > /dev/null` ;`chmod +x /etc/init.d/sphinxsearch > /dev/null`; `update-rc.d sphinxsearch defaults > /dev/null`; fi if [ ! -e config/${HOSTNAME} ];then `mkdir config/${HOSTNAME}`;fi if [ ! -e sphinx-2.0.1.tar.gz ] || [ ! -e sphinx-0.9.9.tar.gz ]