This commit is contained in:
parent
3d9799149b
commit
137bdada7b
21
Sphinx.sh
21
Sphinx.sh
@ -119,22 +119,19 @@ then
|
|||||||
MASTER=0
|
MASTER=0
|
||||||
echo -e $ROUGE"Mode SLAVE activated"$NORMAL
|
echo -e $ROUGE"Mode SLAVE activated"$NORMAL
|
||||||
fi
|
fi
|
||||||
echo -n "Do you want to configure Index ? (y/n) : "; read response
|
|
||||||
if [ $response = 'y' ]
|
liste=`ls config/${HOSTNAME}`
|
||||||
then
|
old="$IFS"
|
||||||
echo -n "Please Enter name of index file (act ent etc...) : "
|
IFS = .
|
||||||
read response
|
set "$liste"
|
||||||
for index in ${response[@]}
|
|
||||||
|
for index in $*
|
||||||
do
|
do
|
||||||
createIndexeFile $index "false"
|
echo -e "$index"
|
||||||
echo -e " - Written data in $index.sphinx.conf"
|
|
||||||
echo -e $VERT"File $index as been create"$NORMAL
|
|
||||||
done
|
done
|
||||||
`cat files/config.sphinx >> indexeConf/sphinx.conf`
|
`cat files/config.sphinx >> indexeConf/sphinx.conf`
|
||||||
`cp 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/`;
|
`cp sphinx.conf /usr/local/sphinx/etc/`;
|
||||||
echo -e $VERT"The installation as been finish ! great ! thank's damien :)"$NORMAL
|
echo -e $VERT"The installation as been finish ! great ! thank's damien :)"$NORMAL
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user