This commit is contained in:
Damien LASSERRE 2011-10-24 08:22:32 +00:00
parent 3d9799149b
commit 137bdada7b

View File

@ -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