diff --git a/Sphinx.sh b/Sphinx.sh index c6ae3ee..16d10d1 100755 --- a/Sphinx.sh +++ b/Sphinx.sh @@ -119,22 +119,19 @@ then MASTER=0 echo -e $ROUGE"Mode SLAVE activated"$NORMAL fi - echo -n "Do you want to configure Index ? (y/n) : "; read response - if [ $response = 'y' ] - then - echo -n "Please Enter name of index file (act ent etc...) : " - read response - for index in ${response[@]} - do - createIndexeFile $index "false" - echo -e " - Written data in $index.sphinx.conf" - echo -e $VERT"File $index as been create"$NORMAL - done - `cat files/config.sphinx >> indexeConf/sphinx.conf` - `cp indexeConf/sphinx.conf .` - fi - `cp tmp/sphinx-$version/src/searchd /usr/bin/`; - `cp tmp/sphinx-$version/src/indexer /usr/bin/`; + + liste=`ls config/${HOSTNAME}` + old="$IFS" + IFS = . + set "$liste" + + for index in $* + do + echo -e "$index" + done + `cat files/config.sphinx >> indexeConf/sphinx.conf` + `cp indexeConf/sphinx.conf .` + `cp sphinx.conf /usr/local/sphinx/etc/`; echo -e $VERT"The installation as been finish ! great ! thank's damien :)"$NORMAL exit