This commit is contained in:
parent
3d9799149b
commit
137bdada7b
21
Sphinx.sh
21
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[@]}
|
||||
|
||||
liste=`ls config/${HOSTNAME}`
|
||||
old="$IFS"
|
||||
IFS = .
|
||||
set "$liste"
|
||||
|
||||
for index in $*
|
||||
do
|
||||
createIndexeFile $index "false"
|
||||
echo -e " - Written data in $index.sphinx.conf"
|
||||
echo -e $VERT"File $index as been create"$NORMAL
|
||||
echo -e "$index"
|
||||
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/`;
|
||||
|
||||
`cp sphinx.conf /usr/local/sphinx/etc/`;
|
||||
echo -e $VERT"The installation as been finish ! great ! thank's damien :)"$NORMAL
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user