r94204 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94203‎ | r94204 | r94205 >
Date:21:54, 10 August 2011
Author:aaron
Status:ok
Tags:
Comment:
* Make sure wikiversions.dat is copied over before running scap-1skins
* Removed unecessary /home dependency from set-group-write2
* Comment tweaks and minor code cleanups
* Added EOL-style
Modified paths:
  • /trunk/tools/mwmultiversion/scripts/l10nupdate (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/mwversionsinuse (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/scap (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/scap-1skins (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/scap-1versions (added) (history)
  • /trunk/tools/mwmultiversion/scripts/scap-2 (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/set-group-write2 (modified) (history)
  • /trunk/tools/mwmultiversion/scripts/sync-l10nupdate (modified) (history)

Diff [purge]

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
1717 + native
Added: svn:executable
1818 + *
Property changes on: trunk/tools/mwmultiversion/scripts/mwversionsinuse
___________________________________________________________________
Added: svn:executable
1919 + *
Property changes on: trunk/tools/mwmultiversion/scripts/scap-2
___________________________________________________________________
Added: svn:executable
2020 + *
Index: trunk/tools/mwmultiversion/scripts/scap
@@ -39,7 +39,8 @@
4040
4141
4242 # 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.
4445 $BINDIR/sync-common
4546
4647
@@ -63,11 +64,14 @@
6465 # Copy
6566 $BINDIR/set-group-write
6667
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...'
6872 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'
6973
70 -echo Copying code to apaches...
 74+echo 'Copying code to apaches...'
7175 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'
7377
7478 $BINDIR/dologmsg "sync done."
Property changes on: trunk/tools/mwmultiversion/scripts/scap
___________________________________________________________________
Added: svn:eol-style
7579 + native
Added: svn:executable
7680 + *
Property changes on: trunk/tools/mwmultiversion/scripts/sync-l10nupdate
___________________________________________________________________
Added: svn:executable
7781 + *
Property changes on: trunk/tools/mwmultiversion/scripts/scap-1skins
___________________________________________________________________
Added: svn:eol-style
7882 + native
Added: svn:executable
7983 + *
Property changes on: trunk/tools/mwmultiversion/scripts/l10nupdate
___________________________________________________________________
Added: svn:executable
8084 + *
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
15 + native
Added: svn:executable
26 + *

Status & tagging log