mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-12-11 14:06:33 +00:00
36 lines
838 B
Bash
36 lines
838 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
MW_BRANCH=$1
|
||
|
EXTENSION_NAME=$2
|
||
|
|
||
|
wget https://github.com/wikimedia/mediawiki/archive/$MW_BRANCH.tar.gz -nv
|
||
|
|
||
|
tar -zxf $MW_BRANCH.tar.gz
|
||
|
mv mediawiki-$MW_BRANCH mediawiki
|
||
|
|
||
|
cd mediawiki
|
||
|
|
||
|
composer install
|
||
|
php maintenance/install.php --dbtype sqlite --dbuser root --dbname mw --dbpath $(pwd) --pass AdminPassword WikiName AdminUser
|
||
|
|
||
|
# echo 'error_reporting(E_ALL| E_STRICT);' >> LocalSettings.php
|
||
|
# echo 'ini_set("display_errors", 1);' >> LocalSettings.php
|
||
|
echo '$wgShowExceptionDetails = true;' >> LocalSettings.php
|
||
|
echo '$wgShowDBErrorBacktrace = true;' >> LocalSettings.php
|
||
|
echo '$wgDevelopmentWarnings = true;' >> LocalSettings.php
|
||
|
|
||
|
echo 'wfLoadSkin( "Citizen" );' >> LocalSettings.php
|
||
|
|
||
|
cat <<EOT >> composer.local.json
|
||
|
{
|
||
|
"require": {
|
||
|
|
||
|
},
|
||
|
"extra": {
|
||
|
"merge-plugin": {
|
||
|
"merge-dev": true,
|
||
|
"include": []
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
EOT
|