-
Notifications
You must be signed in to change notification settings - Fork 5
/
after.sh
30 lines (25 loc) · 1.02 KB
/
after.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
## run this manually after provisioning
export DEBIAN_FRONTEND=noninteractive
sudo add-apt-repository -y ppa:builds/sphinxsearch-rel22
sudo apt-get update
sudo apt-get install -y sphinxsearch
sudo apt-get install -y hunspell
sudo apt-get install -y hunspell-hu
sudo apt-get install -y graphicsmagick
sudo apt-get install -y texlive
sudo apt-get install -y texlive-xetex
sudo apt-get install -y texlive-latex-extra
sudo apt-get install -y texlive-lang-hungarian
sudo apt-get install -y fonts-linuxlibertine
sudo mysql -u homestead -psecret < ./tmp/database.sql
echo '[mysqld]' | sudo tee /etc/mysql/conf.d/szentiras-hu.cnf
echo 'query_cache_type=1' | sudo tee --append /etc/mysql/conf.d/szentiras-hu.cnf
sudo service mysql restart
sudo -H -u vagrant bash -c "export SZENTIRAS_WEBAPP_ENVIRONMENT=local; ./install.sh"
sudo service sphinxsearch stop
sudo ./deploy/local/sphinx/sphinx.conf /etc/sphinxsearch
sudo indexer --all
sudo service sphinxsearch start
touch $PROVISIONED;
fi