Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 52 lines (42 sloc) 1.384 kB
6d03b68 @shish dev scripts
authored
1 #!/bin/bash
2
3 echo "Checking out source code..."
d854841 @shish clone shimmie2-utils, in case init.sh was downloaded alone
authored
4
5 cd `dirname $0/..`
6 if [ ! -d shimmie2-utils ] ; then
7 git clone git@github.com:shish/shimmie2-utils.git
8 fi
9
6d03b68 @shish dev scripts
authored
10 git clone git@github.com:shish/shimmie2.git 2.Xm
11 cp -r 2.Xm 2.Xp
12 cp -r 2.Xm 2.Xs
13
14 cp -r 2.Xm 2.3m
15 cd 2.3m
16 git checkout -b branch_2.3 origin/branch_2.3
17 git branch -D master
18 cd ..
19 cp -r 2.3m 2.3p
20 cp -r 2.3m 2.3s
21
22 echo "Installing reset scripts"
23 for n in 2.?? ; do
24 cd $n
25 ln -s ../shimmie2-utils/reset.sh ./
26 cd ..
27 done
28
29 echo "Installing simpletest"
30 for n in 2.?? ; do
31 cd $n/ext
32 ln -s ../contrib/simpletest ./
33 cd ../..
34 done
835e960 @shish create database users with DB creation rights
authored
35
36 echo "Creating database users"
37 sudo -u postgres psql -c "create user shimmie with password 'shimmie' createdb;"
38 sudo mysql -uroot -pshimmie -e "create user 'shimmie'@'localhost' identified by 'shimmie'";
39 sudo mysql -uroot -pshimmie -e "grant all on *.* to 'shimmie'@'localhost'";
38f2eda @shish web server
authored
40
41 echo "Configuring web server"
c25bc53 @shish logs
authored
42 mkdir logs
43 sudo chgrp www-data logs
44 sudo chmod g+w logs
38f2eda @shish web server
authored
45 sudo rm -f /etc/nginx/sites-enabled/default
5cb4910 @shish slashes...
authored
46 sed "s#@INSTALLDIR@#`pwd`#" shimmie2-utils/shimtest.nginx.conf | sudo tee /etc/nginx/sites-available/shimtest > /dev/null
38f2eda @shish web server
authored
47 sudo ln -sf /etc/nginx/sites-available/shimtest /etc/nginx/sites-enabled/shimtest
ef597f4 @shish tweaks
authored
48 sudo /etc/init.d/nginx restart
e1bfdf3 @shish php5-fpm config
authored
49
50 sed "s#@USER@#`whoami`#" shimmie2-utils/shimtest.php-fpm.conf | sudo tee /etc/php5/fpm/pool.d/shimtest.conf > /dev/null
ef597f4 @shish tweaks
authored
51 sudo /etc/init.d/php5-fpm restart
Something went wrong with that request. Please try again.