-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·110 lines (89 loc) · 3.14 KB
/
deploy.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#!/bin/bash
# Change to html directory
cd html
# Wikimap Images
echo DOWNLOADING: Wikimap Images
curl -Lk https://github.com/lancegatlin/TI3WikiMap-Images/tarball/v0.\
1.\
0 | tar zx
mv lancegatlin-TI3WikiMap-Images* wikimap
# Change to wiki directory
cd w
# Get mediawiki 1.16.5
echo DOWNLOADING: Mediawiki 1.16.5...
curl -Lk http://download.wikimedia.org/mediawiki/1.16/mediawiki-1.16.5.tar.gz | tar zx
cp -R mediawiki-1.16.5/* .
rm -rf mediawiki-1.16.5
cp LocalSettings.db.pwd.template LocalSettings.db.pwd
# Get skin
cd skins
echo DOWNLOADING: TI3 Skin
curl -Lk https://github.com/lancegatlin/MediaWiki-Skin--TI3Wiki/tarball/v0.\
1.\
0 | tar zx
mv lancegatlin-MediaWiki-Skin--TI3Wiki* ti3skin
cp -R ti3skin/* .
rm -rf ti3skin
cd ..
# Get extensions
cd extensions
# Cite for MW1.16
echo DOWNLOADING MWExt1.16: Cite
curl -Lk http://upload.wikimedia.org/ext-dist/Cite-MW1.16-r62678.tar.gz | tar zx
# ParserFunctions for MW1.16
echo DOWNLOADING MWExt1.16: ParserFunctions
curl -Lk http://upload.wikimedia.org/ext-dist/ParserFunctions-MW1.16-r62695.tar.gz | tar zx
# Tree and Menu for MW1.16
echo DOWNLOADING MWExt1.16: TreeAndMenu
curl -Lk http://upload.wikimedia.org/ext-dist/TreeAndMenu-MW1.16-r66255.tar.gz | tar zx
# UserAdmin
echo DOWNLOADING MWExt1.16: UserAdmin
curl -Lk https://github.com/lancegatlin/MediaWiki-Extension--UserAdmin/tarball/v0.9.0 | tar zx
mv lancegatlin-MediaWiki-Extension--UserAdmin-361458a UserAdmin
# SafePHP
echo DOWNLOADING MWExt1.16: SafePHP
curl -Lk https://github.com/lancegatlin/MediaWiki-Extension--SafePHP/tarball/v0.1.\
0 | tar zx
mv lancegatlin-MediaWiki-Extension--SafePHP* SafePHP
# InPlaceCache
echo DOWNLOADING MWExt1.16: InPlaceCache
curl -Lk https://github.com/lancegatlin/MediaWiki-Extension--InPlaceCache/tarball/v0.1.\
0 | tar zx
mv lancegatlin-MediaWiki-Extension--InPlaceCache* InPlaceCache
# TI3WikiMap1
echo DOWNLOADING MWExt1.16: TI3WikiMap1
curl -Lk https://github.com/lancegatlin/MediaWiki-Extension--TI3WikiMap1/tarball/v0.1.\
0 | tar zx
mv lancegatlin-MediaWiki-Extension--TI3WikiMap1* TI3WikiMap1
# TI3WikiMap2
echo DOWNLOADING MWExt1.16: TI3WikiMap2
curl -Lk https://github.com/lancegatlin/MediaWiki-Extension--TI3WikiMap2/tarball/v0.\
1.\
0 | tar zx
mv lancegatlin-MediaWiki-Extension--TI3WikiMap2* TI3WikiMap2
# ReplaceOnSave
echo DOWNLOADING MWExt1.16: ReplaceOnSave
curl -Lk https://github.com/lancegatlin/MediaWiki-Extension--ReplaceOnSave/tarball/v0.\
1.\
0 | tar zx
mv lancegatlin-MediaWiki-Extension--ReplaceOnSave* ReplaceOnSave
# Secure
echo DOWNLOADING MWExt1.16: Secure
curl -Lk https://github.com/lancegatlin/MediaWiki-Extension--Secure/tarball/v0.\
1.\
2 | tar zx
mv lancegatlin-MediaWiki-Extension--Secure* Secure
cp Secure/secure.pwd.template Secure/secure.pwd
# Navigate back to wiki directory
cd ..
# File permissions for MediaWiki
echo Setting permissions...
chgrp -R www *
chmod 770 images
chmod 770 cache
# Navigate back to deploy directory
cd ../../
echo REMINDER: Create database, database user and import wiki data
echo REMINDER: Edit LocalSettings.pwd and set server database password
echo REMINDER: Edit secure.pwd.template and set server password
echo REMINDER: mw_ti3wiki-test.sql contains test wiki data