Skip to content

Commit

Permalink
Move allthetropeswiki and metawiki to use the new mount point (#2762)
Browse files Browse the repository at this point in the history
* Move allthetropeswiki and metawiki to use the new mount point

* Update LocalSettings.php
  • Loading branch information
paladox committed Sep 19, 2019
1 parent 2cce9f7 commit 7b1096f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LocalSettings.php
Expand Up @@ -2946,7 +2946,12 @@ function efGetSiteParams( $conf, $wiki ) {
}

// Needs to be set AFTER $wgDBname is set to a correct value
$wgUploadDirectory = "/mnt/mediawiki-static/$wgDBname";
if ( $wgDBname === 'allthetropeswiki' || $wgDBname === 'metawiki') {
$wmgUploadHostname = 'static-temp.miraheze.org';
$wgUploadDirectory = "/mnt/mediawiki-static-new/$wgDBname";
} else {
$wgUploadDirectory = "/mnt/mediawiki-static/$wgDBname";
}
$wgUploadPath = "https://static.miraheze.org/$wgDBname";

$wgConf->wikis = $wgLocalDatabases;
Expand Down

0 comments on commit 7b1096f

Please sign in to comment.