blob: ac2037ec13f3152593bbe0b52fe8c2675c8628e1 (
plain)
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
|
#!/bin/bash
set -ex
cd ..
wget https://github.com/wikimedia/mediawiki/archive/$MW.tar.gz
tar -zxf $MW.tar.gz
mv mediawiki-$MW mw
cd mw
## MW 1.25 requires Psr\Logger
if [ -f composer.json ]
then
composer install
fi
if [ "$DB" == "postgres" ]
then
psql -c 'create database its_a_mw;' -U postgres
php maintenance/install.php --dbtype $DB --dbuser postgres --dbname its_a_mw --pass nyan TravisWiki admin --scriptpath /TravisWiki
else
mysql -e 'create database its_a_mw;'
php maintenance/install.php --dbtype $DB --dbuser root --dbname its_a_mw --dbpath $(pwd) --pass nyan TravisWiki admin --scriptpath /TravisWiki
fi
|