Reedy has uploaded a new change for review.
https://gerrit.wikimedia.org/r/67292
Change subject: /home/wikipedia to /a/common
......................................................................
/home/wikipedia to /a/common
Change-Id: Ia1a1e78cbbba0a046c2b2614dedbbbfc1774c73e
---
M addWiki.php
M dumpInterwiki.php
M flaggedrevs-periodic-update.sh
M makeSizeDBLists.php
M rebuildInterwiki.php
M storage/make-all-blobs
6 files changed, 16 insertions(+), 16 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMaintenance
refs/changes/92/67292/1
diff --git a/addWiki.php b/addWiki.php
index 029f601..1378d73 100644
--- a/addWiki.php
+++ b/addWiki.php
@@ -64,7 +64,7 @@
$name = $languageNames[$lang];
$dbw = wfGetDB( DB_MASTER );
- $common = "/home/wikipedia/common";
+ $common = "/a/common";
$this->output( "Creating database $dbName for $lang.$site
($name)\n" );
diff --git a/dumpInterwiki.php b/dumpInterwiki.php
index d79cdbb..2ecc8be 100644
--- a/dumpInterwiki.php
+++ b/dumpInterwiki.php
@@ -50,11 +50,11 @@
}
function execute() {
- $default_all_dblist = getRealmSpecificFilename(
"/home/wikipedia/common/all.dblist" );
- $default_special_dblist = getRealmSpecificFilename(
"/home/wikipedia/common/special.dblist" );
+ $default_all_dblist = getRealmSpecificFilename(
"/a/common/all.dblist" );
+ $default_special_dblist = getRealmSpecificFilename(
"/a/common/special.dblist" );
# List of language prefixes likely to be found in
multi-language sites
- $this->langlist = array_map( "trim", file( $this->getOption(
'langlist', "/home/wikipedia/common/langlist" ) ) );
+ $this->langlist = array_map( "trim", file( $this->getOption(
'langlist', "/a/common/langlist" ) ) );
# List of all database names
$this->dblist = array_map( "trim", file( $this->getOption(
'dblist', $default_all_dblist ) ) );
diff --git a/flaggedrevs-periodic-update.sh b/flaggedrevs-periodic-update.sh
index 4a7d3fa..5c5076a 100644
--- a/flaggedrevs-periodic-update.sh
+++ b/flaggedrevs-periodic-update.sh
@@ -1,9 +1,9 @@
#!/bin/bash
-. /home/wikipedia/common/multiversion/MWRealm.sh
-FILE=`getRealmSpecificFilename /home/wikipedia/common/flaggedrevs.dblist`
+. /a/common/multiversion/MWRealm.sh
+FILE=`getRealmSpecificFilename /a/common/flaggedrevs.dblist`
for db in `<$FILE`;do
echo $db
- php -n /home/wikipedia/common/multiversion/MWScript.php
extensions/FlaggedRevs/maintenance/updateStats.php $db
+ php -n /a/common/multiversion/MWScript.php
extensions/FlaggedRevs/maintenance/updateStats.php $db
done
diff --git a/makeSizeDBLists.php b/makeSizeDBLists.php
index f8271df..cc36d6d 100644
--- a/makeSizeDBLists.php
+++ b/makeSizeDBLists.php
@@ -36,11 +36,11 @@
}
$this->output( 'Small wiki count: ' . count( $small ) . "\n" );
- $this->writeFile( '/home/wikipedia/common/small.dblist', $small
);
+ $this->writeFile( '/a/common/small.dblist', $small );
$this->output( 'Medium wiki count: ' . count( $medium ) . "\n"
);
- $this->writeFile( '/home/wikipedia/common/medium.dblist',
$medium );
+ $this->writeFile( '/a/common/medium.dblist', $medium );
$this->output( 'Large wiki count: ' . count( $large ) . "\n" );
- $this->writeFile( '/home/wikipedia/common/large.dblist', $large
);
+ $this->writeFile( '/a/common/large.dblist', $large );
}
/**
diff --git a/rebuildInterwiki.php b/rebuildInterwiki.php
index 5f73876..5a037f4 100644
--- a/rebuildInterwiki.php
+++ b/rebuildInterwiki.php
@@ -38,17 +38,17 @@
function execute() {
# List of language prefixes likely to be found in
multi-language sites
- $this->langlist = array_map( "trim", file( $this->getOption(
'langlist', "/home/wikipedia/common/langlist" ) ) );
+ $this->langlist = array_map( "trim", file( $this->getOption(
'langlist', "/a/common/langlist" ) ) );
# List of all database names
- $default_all_dblist = getRealmSpecificFilename(
"/home/wikipedia/common/all.dblist" );
+ $default_all_dblist = getRealmSpecificFilename(
"/a/common/all.dblist" );
$this->dblist = array_map( "trim", file( $this->getOption(
'dblist', $default_all_dblist ) ) );
# Special-case databases
- //$default_special_dblist = getRealmSpecificFilename(
"/home/wikipedia/common/special.dblist" );
+ //$default_special_dblist = getRealmSpecificFilename(
"/a/common/special.dblist" );
//$this->specials = array_flip( array_map( "trim", file(
$this->getOption( 'specialdbs', $default_special_dblist ) ) ) );
- $this->makeInterwikiSQL( $this->getOption( 'd',
'/home/wikipedia/conf/interwiki/sql' ) ); // FIXME:
+ $this->makeInterwikiSQL( $this->getOption( 'd',
'/a/conf/interwiki/sql' ) ); // FIXME:
if ( $this->hasOption( 'protocolrelative' ) ) {
$this->urlprotocol = '';
diff --git a/storage/make-all-blobs b/storage/make-all-blobs
index 2121aa1..eb349a0 100755
--- a/storage/make-all-blobs
+++ b/storage/make-all-blobs
@@ -11,8 +11,8 @@
table=$2
fi
-. /home/wikipedia/common/multiversion/MWRealm.sh
-FILE=`getRealmSpecificFilename /home/wikipedia/common/all.dblist`
+. /a/common/multiversion/MWRealm.sh
+FILE=`getRealmSpecificFilename /a/common/all.dblist`
for db in `<$FILE`;do
echo "CREATE DATABASE IF NOT EXISTS $db" | mysql -u wikiadmin
-p`wikiadmin_pass` -h $server && \
--
To view, visit https://gerrit.wikimedia.org/r/67292
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia1a1e78cbbba0a046c2b2614dedbbbfc1774c73e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits