https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114544
Revision: 114544
Author: tstarling
Date: 2012-03-27 23:16:05 +0000 (Tue, 27 Mar 2012)
Log Message:
-----------
* set -e so that it doesn't sync to the apaches if the PHP script gets an error
* --wiki parameter so $args[0] works with mwscript
Modified Paths:
--------------
branches/wmf/1.19wmf1/extensions/TrustedXFF/update
Modified: branches/wmf/1.19wmf1/extensions/TrustedXFF/update
===================================================================
--- branches/wmf/1.19wmf1/extensions/TrustedXFF/update 2012-03-27 22:58:08 UTC
(rev 114543)
+++ branches/wmf/1.19wmf1/extensions/TrustedXFF/update 2012-03-27 23:16:05 UTC
(rev 114544)
@@ -1,7 +1,9 @@
#!/bin/bash
+set -e
+
cd `dirname $0`
-mwscript extensions/TrustedXFF/generate.php aawiki ../../cache/trusted-xff.cdb
+mwscript extensions/TrustedXFF/generate.php --wiki=aawiki
../../cache/trusted-xff.cdb
bzip2 -kf ../../cache/trusted-xff.cdb
if [ -x /usr/local/bin/sync-common-file ]; then
version="`readlink /home/wikipedia/common/php`"
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs