This commit is contained in:
Damien LASSERRE 2011-10-24 07:49:38 +00:00
parent 3bca9dbe13
commit 3d9799149b

View File

@ -27,7 +27,6 @@ then
;;
'--install')
#Environement for installation
if [ ! -f sphinx-error-log.log ];then `touch sphinx-error-log.log &`; log="Success"; fi
if [ ! -e indexeConf ];then `mkdir indexeConf`; indexeConf="Success"; fi
`touch indexeConf/sphinx.conf`
sphinxconf="Success"
@ -39,7 +38,7 @@ then
if [ ! -e /dbs/sphinx ];then `mkdir /dbs/sphinx`; sphinx="Success"; fi
if [ ! -e /dbs/sphinxlog ];then `mkdir /dbs/sphinxlog`; sphinxlog="Success"; fi
if [ ! -e /init.d/sphinxsearch ];then `cp files/sphinxsearch /etc/init.d/; update-rc.d sphinxsearch defaults`;sphinxinit="Success"; fi
if [ ! -e /init.d/sphinxsearch ];then `cp initscript/sphinxsearch /etc/init.d/; update-rc.d sphinxsearch defaults`;sphinxinit="Success"; fi
#Check if package in directory, if you want to download manually the package
if [ ! -e sphinx-2.0.1.tar.gz ] || [ ! -e sphinx-0.9.9.tar.gz ]
then
@ -98,7 +97,6 @@ then
echo -e "3. Directory : /dbs " $VERT $dbs $NORMAL
echo -e "4. Directory : /dbs/sphinx " $VERT $sphinx $NORMAL
echo -e "5. Directory : /dbs/sphinxlog " $VERT $sphinxlog $NORMAL
echo -e "6. File : sphinx-error-log.log " $VERT $log $NORMAL
echo -e "7. File : indexeConf/sphinx.conf " $VERT $sphinxconf $NORMAL
echo -e "8. File : /init.d/sphinxsearch " $VERT $sphinxinit $NORMAL
if [ ! -z $2 ]; then