Index: trunk/debs/wikimedia-task-appserver/scap-2 |
— | — | @@ -1,40 +1,51 @@ |
2 | | -#!/bin/bash |
3 | | - |
4 | | -PATH=/bin:/usr/bin:/sbin:/usr/sbin: |
5 | | - |
6 | | -echo -n Copying to `hostname -s`... |
7 | | -if rsync -a --delete --exclude=**/.svn/lock --no-perms \ |
8 | | - 10.0.5.8::common/ /usr/local/apache/common-local |
9 | | -then |
10 | | - echo ok |
11 | | -else |
12 | | - echo failed |
13 | | - exit 1 |
14 | | -fi |
15 | | - |
16 | | - |
17 | | -echo -n Compiling texvc... |
18 | | - |
19 | | -builddir=`mktemp -dt texvc-build.XXXXXXXXXX` |
20 | | -if [ -z "$builddir" ]; then |
21 | | - echo "Unable to create temporary directory" |
22 | | - exit 1 |
23 | | -fi |
24 | | - |
25 | | -rsync -r --exclude=.svn/ /usr/local/apache/common-local/php-1.17/math/ "$builddir" |
26 | | -cd "$builddir" |
27 | | -if make -f Makefile texvc >/dev/null 2>/dev/null; then |
28 | | - echo ok |
29 | | - install -d /usr/local/apache/uncommon/1.17/bin |
30 | | - install -m 755 "$builddir"/texvc /usr/local/apache/uncommon/1.17/bin |
31 | | -else |
32 | | - echo failed |
33 | | - exit 1 |
34 | | -fi |
35 | | -rm -r "$builddir" |
36 | | -cd / |
37 | | - |
38 | | - |
39 | | -#echo -n "Restarting apache... " |
40 | | -#/usr/bin/apache-sanity-check && ( sudo /usr/sbin/apache2ctl stop; sudo killall -9 apache2;sleep 3; sudo /usr/sbin/apache2ctl start ) |
41 | | - |
| 2 | +#!/bin/bash
|
| 3 | +
|
| 4 | +PATH=/bin:/usr/bin:/sbin:/usr/sbin:
|
| 5 | +
|
| 6 | +echo -n Copying to `hostname -s`...
|
| 7 | +if rsync -a --delete --exclude=**/.svn/lock --no-perms \
|
| 8 | + 10.0.5.8::common/ /usr/local/apache/common-local
|
| 9 | +then
|
| 10 | + echo "ok"
|
| 11 | +else
|
| 12 | + echo "failed"
|
| 13 | + exit 1
|
| 14 | +fi
|
| 15 | +
|
| 16 | +# wikiversions.dat just synced above
|
| 17 | +mwVersionNums=`mwversionsinuse`
|
| 18 | +if [ -z "$mwVersionNums" ]; then
|
| 19 | + echo "Unable to read wikiversions.dat or it is empty"
|
| 20 | + exit 1
|
| 21 | +fi
|
| 22 | +
|
| 23 | +for mwVerNum in "${mwVersionNums[@]}"
|
| 24 | +do
|
| 25 | + echo "MediaWiki $mwVerNum: Compiling texvc..."
|
| 26 | + builddir=`mktemp -dt texvc-build.XXXXXXXXXX`
|
| 27 | + if [ -z "$builddir" ]; then
|
| 28 | + echo "Unable to create temporary directory"
|
| 29 | + exit 1
|
| 30 | + fi
|
| 31 | +
|
| 32 | + IP=/usr/local/apache/common-local/php-"$mwVerNum"
|
| 33 | + # Math was moved out to an extension in MW 1.18
|
| 34 | + if [ -d $IP/extensions/Math/math ]; then
|
| 35 | + MATHPATH=$IP/extensions/Math/math
|
| 36 | + else
|
| 37 | + MATHPATH=$IP/math
|
| 38 | + fi
|
| 39 | +
|
| 40 | + rsync -r --exclude=.svn/ $MATHPATH/ "$builddir"
|
| 41 | + cd "$builddir"
|
| 42 | + if make -f Makefile texvc >/dev/null 2>/dev/null; then
|
| 43 | + echo "ok"
|
| 44 | + install -d /usr/local/apache/uncommon/"$mwVerNum"/bin
|
| 45 | + install -m 755 "$builddir"/texvc /usr/local/apache/uncommon/"$mwVerNum"/bin
|
| 46 | + else
|
| 47 | + echo "failed"
|
| 48 | + exit 1
|
| 49 | + fi
|
| 50 | + rm -r "$builddir"
|
| 51 | + cd /
|
| 52 | +done
|
Index: trunk/debs/wikimedia-task-appserver/scap-1skins |
— | — | @@ -1,8 +1,12 @@ |
2 | 2 | #!/bin/bash |
3 | 3 | |
4 | | -sudo -u mwdeploy sh -c ' |
5 | | -rsync -a --no-perms 10.0.5.8::common/php-1.17/skins/ \ |
6 | | -/usr/local/apache/common-local/php-1.17/skins && \ |
7 | | -echo ok || \ |
8 | | -echo failed |
9 | | -' |
| 4 | +mwVersionNums=`mwversionsinuse` |
| 5 | +for mwVerNum in "${mwVersionNums[@]}" |
| 6 | +do |
| 7 | + sudo -u mwdeploy sh -c " |
| 8 | + rsync -a --no-perms 10.0.5.8::common/php-$mwVerNum/skins/ \ |
| 9 | + /usr/local/apache/common-local/php-$mwVerNum/skins && \ |
| 10 | + echo ok || \ |
| 11 | + echo failed |
| 12 | + " |
| 13 | +done |
Index: trunk/debs/wikimedia-task-appserver/mwversionsinuse |
— | — | @@ -0,0 +1,6 @@ |
| 2 | +#!/bin/sh
|
| 3 | +# Shell wrapper for the local version of multiversion/activeMWVersions.
|
| 4 | +# This script belongs in /usr/bin/ and should be in PATH.
|
| 5 | +if ! /usr/local/apache/common-local/multiversion/activeMWVersions "$@"; then
|
| 6 | + exit 1
|
| 7 | +fi
|
Index: trunk/debs/wikimedia-task-appserver/debian/changelog |
— | — | @@ -1,3 +1,9 @@ |
| 2 | +wikimedia-task-appserver (2.3-1) lucid-wikimedia; urgency=low |
| 3 | + |
| 4 | + * Updated deploy scripts for Heterogeneous Deployment |
| 5 | + |
| 6 | + -- Aaron Schulz <aschulz@wikimedia.org> Mon, 29 Aug 2011 22:12:13 +0000 |
| 7 | + |
2 | 8 | wikimedia-task-appserver (2.2-1) lucid-wikimedia; urgency=low |
3 | 9 | |
4 | 10 | * Added mwdeploy privilege separation. |
— | — | @@ -39,9 +45,9 @@ |
40 | 46 | -- Mark Bergsma <mark@wikimedia.org> Fri, 25 Feb 2011 17:14:13 +0000 |
41 | 47 | |
42 | 48 | wikimedia-task-appserver (1.47) hardy-wikimedia; urgency=low |
43 | | - |
| 49 | + |
44 | 50 | * Updated sync scripts for MW 11.17 |
45 | | - |
| 51 | + |
46 | 52 | -- Tim Starling <tstarling@wikimedia.org> Tue, 01 Mar 2011 13:13:43 +1100 |
47 | 53 | |
48 | 54 | wikimedia-task-appserver (1.46-2~hardy1) hardy-wikimedia; urgency=low |
— | — | @@ -138,7 +144,7 @@ |
139 | 145 | |
140 | 146 | wikimedia-task-appserver (1.33) hardy; urgency=low |
141 | 147 | |
142 | | - * Added /mnt/upload5 to the remove list, removed /mnt/upload4 from the |
| 148 | + * Added /mnt/upload5 to the remove list, removed /mnt/upload4 from the |
143 | 149 | install list since it's apparently dysfunctional. |
144 | 150 | |
145 | 151 | -- Tim Starling <tstarling@wikimedia.org> Thu, 29 Jan 2009 12:22:40 +1100 |
— | — | @@ -238,38 +244,38 @@ |
239 | 245 | |
240 | 246 | wikimedia-task-appserver (1.17) feisty; urgency=low |
241 | 247 | |
242 | | - * log_errors=On |
| 248 | + * log_errors=On |
243 | 249 | |
244 | 250 | -- Tim Starling <tstarling@wikimedia.org> Wed, 29 Aug 2007 14:08:12 +0000 |
245 | 251 | |
246 | 252 | wikimedia-task-appserver (1.16) feisty; urgency=low |
247 | 253 | |
248 | | - * Added /etc/apache2/envvars |
| 254 | + * Added /etc/apache2/envvars |
249 | 255 | |
250 | 256 | -- Tim Starling <tstarling@wikimedia.org> Wed, 29 Aug 2007 00:46:34 +0000 |
251 | 257 | |
252 | 258 | wikimedia-task-appserver (1.15) feisty; urgency=low |
253 | 259 | |
254 | | - * No, really, mode 400 for sudoers. |
| 260 | + * No, really, mode 400 for sudoers. |
255 | 261 | * Diversion for sudoers |
256 | 262 | |
257 | 263 | -- Tim Starling <tstarling@wikimedia.org> Tue, 28 Aug 2007 23:56:38 +0000 |
258 | 264 | |
259 | 265 | wikimedia-task-appserver (1.14) feisty; urgency=low |
260 | 266 | |
261 | | - * Remove conf file diversions on purge, not on remove |
| 267 | + * Remove conf file diversions on purge, not on remove |
262 | 268 | |
263 | 269 | -- Tim Starling <tstarling@wikimedia.org> Tue, 28 Aug 2007 23:15:36 +0000 |
264 | 270 | |
265 | 271 | wikimedia-task-appserver (1.13) feisty; urgency=low |
266 | 272 | |
267 | | - * Handle diversions only on install and remove |
| 273 | + * Handle diversions only on install and remove |
268 | 274 | |
269 | 275 | -- Tim Starling <tstarling@wikimedia.org> Tue, 28 Aug 2007 19:38:06 +0000 |
270 | 276 | |
271 | 277 | wikimedia-task-appserver (1.12) feisty; urgency=low |
272 | 278 | |
273 | | - * Fixed permissions on /etc/sudoers |
| 279 | + * Fixed permissions on /etc/sudoers |
274 | 280 | |
275 | 281 | -- Tim Starling <tstarling@wikimedia.org> Tue, 28 Aug 2007 19:05:28 +0000 |
276 | 282 | |
— | — | @@ -326,25 +332,25 @@ |
327 | 333 | |
328 | 334 | wikimedia-task-appserver (1.4) feisty; urgency=low |
329 | 335 | |
330 | | - * Depend on additional X fonts. |
| 336 | + * Depend on additional X fonts. |
331 | 337 | |
332 | 338 | -- River Tarnell <river@wikimedia.org> Sun, 13 May 2007 16:20:43 +0000 |
333 | 339 | |
334 | 340 | wikimedia-task-appserver (1.3) feisty; urgency=low |
335 | 341 | |
336 | | - * Automatically add/remove required mounts from amane. |
| 342 | + * Automatically add/remove required mounts from amane. |
337 | 343 | |
338 | 344 | -- River Tarnell <river@wikimedia.org> Sun, 13 May 2007 15:02:35 +0000 |
339 | 345 | |
340 | 346 | wikimedia-task-appserver (1.2) feisty; urgency=low |
341 | 347 | |
342 | | - * Depend on some additional packages required for MediaWiki. |
| 348 | + * Depend on some additional packages required for MediaWiki. |
343 | 349 | |
344 | 350 | -- River Tarnell <river@wikimedia.org> Sun, 13 May 2007 08:45:37 +0000 |
345 | 351 | |
346 | 352 | wikimedia-task-appserver (1.1) feisty; urgency=low |
347 | 353 | |
348 | | - * Install the required infastructure under /usr/local/apache for sync-* etc. |
| 354 | + * Install the required infastructure under /usr/local/apache for sync-* etc. |
349 | 355 | |
350 | 356 | -- River Tarnell <river@wikimedia.org> Sat, 12 May 2007 19:28:44 +0000 |
351 | 357 | |
Index: trunk/debs/wikimedia-task-appserver/debian/rules |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | |
31 | 31 | build: build-stamp |
32 | 32 | |
33 | | -build-stamp: configure-stamp |
| 33 | +build-stamp: configure-stamp |
34 | 34 | dh_testdir |
35 | 35 | |
36 | 36 | touch build-stamp |
— | — | @@ -39,19 +39,19 @@ |
40 | 40 | dh_testroot |
41 | 41 | rm -f build-stamp configure-stamp |
42 | 42 | |
43 | | - dh_clean |
| 43 | + dh_clean |
44 | 44 | |
45 | 45 | install: build |
46 | 46 | dh_testdir |
47 | 47 | dh_testroot |
48 | | - dh_clean -k |
| 48 | + dh_clean -k |
49 | 49 | dh_installdirs |
50 | 50 | dh_link |
51 | | - |
| 51 | + |
52 | 52 | # Install sync/check scripts |
53 | 53 | install -d -m 0755 $(DESTDIR)/usr/bin |
54 | 54 | install -d -m 0755 $(DESTDIR)/usr/sbin |
55 | | - install -m 0755 sync-common apache-sanity-check apache-start check-time scap-1skins scap-1 scap-2 $(DESTDIR)/usr/bin |
| 55 | + install -m 0755 sync-common apache-sanity-check apache-start check-time scap-1skins scap-1 scap-2 mwversionsinuse $(DESTDIR)/usr/bin |
56 | 56 | |
57 | 57 | # Build architecture-independent files here. |
58 | 58 | binary-indep: build install |
— | — | @@ -61,12 +61,12 @@ |
62 | 62 | binary-arch: build install |
63 | 63 | dh_testdir |
64 | 64 | dh_testroot |
65 | | - dh_installchangelogs |
| 65 | + dh_installchangelogs |
66 | 66 | dh_installdocs |
67 | 67 | dh_installexamples |
68 | 68 | # dh_install |
69 | 69 | # dh_installmenu |
70 | | -# dh_installdebconf |
| 70 | +# dh_installdebconf |
71 | 71 | # dh_installlogrotate |
72 | 72 | # dh_installemacsen |
73 | 73 | # dh_installpam |