Index: trunk/tools/mwmultiversion/scripts/set-group-write2 |
— | — | @@ -1,15 +1,15 @@ |
2 | | -#!/bin/bash
|
3 | | -if [ $HOSTNAME == fenari ]; then
|
4 | | - targetbase=/home/wikipedia/common
|
5 | | -else
|
6 | | - targetbase=/apache/common
|
7 | | -fi
|
8 | | -
|
9 | | -mwVersionNums=`mwversionsinuse --home`
|
10 | | -for mwVerNum in "${mwVersionNums[@]}"
|
11 | | -do
|
12 | | - find "$targetbase"/php-"$mwVerNum" -group wikidev -not -perm -020 -exec chmod g+w '{}' ';'
|
13 | | -done
|
14 | | -
|
15 | | -find "$targetbase"/wmf-config -group wikidev -not -perm -020 -exec chmod g+w '{}' ';'
|
16 | | -find "$targetbase"/multiversion -group wikidev -not -perm -020 -exec chmod g+w '{}' ';'
|
| 2 | +#!/bin/bash |
| 3 | +if [ $HOSTNAME == fenari ]; then |
| 4 | + TARGETBASE=/home/wikipedia/common |
| 5 | +else |
| 6 | + TARGETBASE=/apache/common |
| 7 | +fi |
| 8 | + |
| 9 | +mwVersionNums=`mwversionsinuse` |
| 10 | +for mwVerNum in "${mwVersionNums[@]}" |
| 11 | +do |
| 12 | + find "$TARGETBASE"/php-"$mwVerNum" -group wikidev -not -perm -020 -exec chmod g+w '{}' ';' |
| 13 | +done |
| 14 | + |
| 15 | +find "$TARGETBASE"/wmf-config -group wikidev -not -perm -020 -exec chmod g+w '{}' ';' |
| 16 | +find "$TARGETBASE"/multiversion -group wikidev -not -perm -020 -exec chmod g+w '{}' ';' |
Property changes on: trunk/tools/mwmultiversion/scripts/set-group-write2 |
___________________________________________________________________ |
Added: svn:eol-style |
17 | 17 | + native |
Added: svn:executable |
18 | 18 | + * |
Property changes on: trunk/tools/mwmultiversion/scripts/mwversionsinuse |
___________________________________________________________________ |
Added: svn:executable |
19 | 19 | + * |
Property changes on: trunk/tools/mwmultiversion/scripts/scap-2 |
___________________________________________________________________ |
Added: svn:executable |
20 | 20 | + * |
Index: trunk/tools/mwmultiversion/scripts/scap |
— | — | @@ -39,7 +39,8 @@ |
40 | 40 | |
41 | 41 | |
42 | 42 | # Update the current machine so that serialization works. |
43 | | -# wikiversions.cdb update is pushed and mwscript works. |
| 43 | +# Push wikiversions.cdb changes so mwversionsinuse, set-group-write, |
| 44 | +# and mwscript work with the right version of the files. |
44 | 45 | $BINDIR/sync-common |
45 | 46 | |
46 | 47 | |
— | — | @@ -63,11 +64,14 @@ |
64 | 65 | # Copy |
65 | 66 | $BINDIR/set-group-write |
66 | 67 | |
67 | | -echo Copying style sheets to apaches... |
| 68 | +echo 'Copying wikiversions dat file to apaches...' |
| 69 | +ddsh -F30 -cM -g mediawiki-installation 'if [ -x /home/wikipedia/bin/scap-1versions ]; then echo "/home-mounted apache $(hostname)"; /home/wikipedia/bin/scap-1versions; else /usr/bin/scap-1versions; fi' |
| 70 | + |
| 71 | +echo 'Copying style sheets to apaches...' |
68 | 72 | ddsh -F30 -cM -g mediawiki-installation 'if [ -x /home/wikipedia/bin/scap-1skins ]; then echo "/home-mounted apache $(hostname)"; /home/wikipedia/bin/scap-1skins; else /usr/bin/scap-1skins; fi' |
69 | 73 | |
70 | | -echo Copying code to apaches... |
| 74 | +echo 'Copying code to apaches...' |
71 | 75 | ddsh -F30 -cM -g mediawiki-installation 'if [ -x /home/wikipedia/bin/scap-1 ]; then echo "/home-mounted apache $(hostname)"; /home/wikipedia/bin/scap-1; else /usr/bin/scap-1; fi' |
72 | | -echo Finished |
| 76 | +echo 'Finished' |
73 | 77 | |
74 | 78 | $BINDIR/dologmsg "sync done." |
Property changes on: trunk/tools/mwmultiversion/scripts/scap |
___________________________________________________________________ |
Added: svn:eol-style |
75 | 79 | + native |
Added: svn:executable |
76 | 80 | + * |
Property changes on: trunk/tools/mwmultiversion/scripts/sync-l10nupdate |
___________________________________________________________________ |
Added: svn:executable |
77 | 81 | + * |
Property changes on: trunk/tools/mwmultiversion/scripts/scap-1skins |
___________________________________________________________________ |
Added: svn:eol-style |
78 | 82 | + native |
Added: svn:executable |
79 | 83 | + * |
Property changes on: trunk/tools/mwmultiversion/scripts/l10nupdate |
___________________________________________________________________ |
Added: svn:executable |
80 | 84 | + * |
Index: trunk/tools/mwmultiversion/scripts/scap-1versions |
— | — | @@ -0,0 +1,3 @@ |
| 2 | +#!/bin/bash |
| 3 | + |
| 4 | +sudo -u mwdeploy rsync -l 10.0.5.8::common/wikiversions.dat /usr/local/apache/common-local/wikiversions.dat |
Property changes on: trunk/tools/mwmultiversion/scripts/scap-1versions |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 5 | + native |
Added: svn:executable |
2 | 6 | + * |