Index: trunk/phase3/maintenance/commandLine.inc |
— | — | @@ -111,7 +111,8 @@ |
112 | 112 | |
113 | 113 | if ( file_exists( '/home/wikipedia/common/langlist' ) ) { |
114 | 114 | $wgWikiFarm = true; |
115 | | - $cluster = trim( file_get_contents( '/etc/cluster' ) ); |
| 115 | + #$cluster = trim( file_get_contents( '/etc/cluster' ) ); |
| 116 | + $cluster = 'pmtpa'; |
116 | 117 | require_once( "$IP/includes/SiteConfiguration.php" ); |
117 | 118 | |
118 | 119 | # Get $wgConf |
— | — | @@ -152,6 +153,10 @@ |
153 | 154 | $DP = $IP; |
154 | 155 | ini_set( 'include_path', ".:$IP:$IP/includes:$IP/languages:$IP/maintenance" ); |
155 | 156 | |
| 157 | + if ( $lang == 'test' && $site == 'wikipedia' ) { |
| 158 | + define( 'TESTWIKI', 1 ); |
| 159 | + } |
| 160 | + |
156 | 161 | #require_once( $IP.'/includes/ProfilerStub.php' ); |
157 | 162 | require_once( $IP.'/includes/Defines.php' ); |
158 | 163 | require_once( $IP.'/CommonSettings.php' ); |
— | — | @@ -209,6 +214,10 @@ |
210 | 215 | $wgDBservers[$i]['password'] = $wgDBpassword; |
211 | 216 | } |
212 | 217 | } |
| 218 | + if( isset( $wgLBFactoryConf['serverTemplate'] ) ) { |
| 219 | + $wgLBFactoryConf['serverTemplate']['user'] = $wgDBuser; |
| 220 | + $wgLBFactoryConf['serverTemplate']['password'] = $wgDBpassword; |
| 221 | + } |
213 | 222 | } |
214 | 223 | |
215 | 224 | if ( defined( 'MW_CMDLINE_CALLBACK' ) ) { |