Commit 20077771 by Carsten Brandt

Update sphinx-setup.sh

parent d64fa3e8
......@@ -2,27 +2,10 @@
SCRIPT=$(readlink -f "$0")
CWD=$(dirname "$SCRIPT")
# work around https://github.com/travis-ci/travis-ci/issues/2728
PATH=$PATH:/usr/local/sphinx-2.1.9/bin
# make dir that is used in sphinx config
mkdir -p sphinx
sed -i s\~SPHINX_BASE_DIR~$PWD/sphinx~g $CWD/../sphinx/sphinx.conf
# log files
#sudo mkdir /var/log/sphinx
#sudo touch /var/log/sphinx/searchd.log
#sudo touch /var/log/sphinx/query.log
#sudo chmod -R 777 /var/log/sphinx # ugly (for travis)
# spl dir
#sudo mkdir /var/lib/sphinx
#sudo chmod 777 /var/lib/sphinx # ugly (for travis)
# run dir pid
#sudo mkdir /var/run/sphinx
#sudo chmod 777 /var/run/sphinx # ugly (for travis)
# Setup source database
mysql -D yiitest -u travis < $CWD/../sphinx/source.sql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment