Krinkle has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/58272


Change subject: noc: Clean up conf viewer
......................................................................

noc: Clean up conf viewer

- Remove exception for langlist and wikiversions.dat from regular
  txt protocol. At least in Google Chrome accessing
  conf/wikiversions.dat causes a download instead of a view.
- Re-run createTxtFileSymlinks.sh to fix symlinks paths
- Find path to /h/w/c relatively instead of absolutely so that
  it also works when testing locally.
- Add context to highlight.php <title> tag
- Add favicon to conf/*.php
- Add the remainder files from public wmf-config/*.php that
  weren't in the list yet.

Change-Id: I2d8a2a0ca8da54c9a22cfe45e98a062c425d22d3
---
A docroot/noc/conf/CommonSettings-labs.php.txt
M docroot/noc/conf/CommonSettings.php.txt
A docroot/noc/conf/InitialiseSettings-labs.php.txt
M docroot/noc/conf/InitialiseSettings.php.txt
M docroot/noc/conf/PoolCounterSettings-eqiad.php.txt
M docroot/noc/conf/PoolCounterSettings-pmtpa.php.txt
M docroot/noc/conf/StartProfiler.php.txt
M docroot/noc/conf/abusefilter.php.txt
M docroot/noc/conf/codereview.php.txt
M docroot/noc/conf/db-eqiad.php.txt
M docroot/noc/conf/db-labs.php.txt
M docroot/noc/conf/db-pmtpa.php.txt
A docroot/noc/conf/db-secondary.php.txt
A docroot/noc/conf/ext-labs.php.txt
A docroot/noc/conf/ext-production.php.txt
A docroot/noc/conf/filebackend-labs.php.txt
M docroot/noc/conf/filebackend.php.txt
M docroot/noc/conf/flaggedrevs.php.txt
M docroot/noc/conf/highlight.php
M docroot/noc/conf/index.php
A docroot/noc/conf/jobqueue-eqiad.php.txt
A docroot/noc/conf/jobqueue-pmtpa.php.txt
D docroot/noc/conf/langlist
A docroot/noc/conf/langlist.txt
M docroot/noc/conf/liquidthreads.php.txt
A docroot/noc/conf/logging-labs.php.txt
M docroot/noc/conf/lucene-common.php.txt
M docroot/noc/conf/lucene-labs.php.txt
M docroot/noc/conf/lucene-production.php.txt
M docroot/noc/conf/mc-eqiad.php.txt
M docroot/noc/conf/mc-labs.php.txt
M docroot/noc/conf/mc-pmtpa.php.txt
A docroot/noc/conf/missing.php.txt
A docroot/noc/conf/mobile-labs.php.txt
M docroot/noc/conf/mobile.php.txt
M docroot/noc/conf/proofreadpage.php.txt
M docroot/noc/conf/throttle.php.txt
M docroot/noc/conf/wgConf.php.txt
A docroot/noc/conf/wikiversions.dat.txt
M docroot/noc/createTxtFileSymlinks.sh
40 files changed, 80 insertions(+), 53 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config 
refs/changes/72/58272/1

diff --git a/docroot/noc/conf/CommonSettings-labs.php.txt 
b/docroot/noc/conf/CommonSettings-labs.php.txt
new file mode 120000
index 0000000..76e173f
--- /dev/null
+++ b/docroot/noc/conf/CommonSettings-labs.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/CommonSettings-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/CommonSettings.php.txt 
b/docroot/noc/conf/CommonSettings.php.txt
index e7cc2fb..2ecdf2a 120000
--- a/docroot/noc/conf/CommonSettings.php.txt
+++ b/docroot/noc/conf/CommonSettings.php.txt
@@ -1 +1 @@
-../../wmf-config/CommonSettings.php
\ No newline at end of file
+../../../wmf-config/CommonSettings.php
\ No newline at end of file
diff --git a/docroot/noc/conf/InitialiseSettings-labs.php.txt 
b/docroot/noc/conf/InitialiseSettings-labs.php.txt
new file mode 120000
index 0000000..27c1122
--- /dev/null
+++ b/docroot/noc/conf/InitialiseSettings-labs.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/InitialiseSettings-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/InitialiseSettings.php.txt 
b/docroot/noc/conf/InitialiseSettings.php.txt
index 9f6dab3..bf54008 120000
--- a/docroot/noc/conf/InitialiseSettings.php.txt
+++ b/docroot/noc/conf/InitialiseSettings.php.txt
@@ -1 +1 @@
-../../wmf-config/InitialiseSettings.php
\ No newline at end of file
+../../../wmf-config/InitialiseSettings.php
\ No newline at end of file
diff --git a/docroot/noc/conf/PoolCounterSettings-eqiad.php.txt 
b/docroot/noc/conf/PoolCounterSettings-eqiad.php.txt
index b224ba2..b74c75c 120000
--- a/docroot/noc/conf/PoolCounterSettings-eqiad.php.txt
+++ b/docroot/noc/conf/PoolCounterSettings-eqiad.php.txt
@@ -1 +1 @@
-../../wmf-config/PoolCounterSettings-eqiad.php
\ No newline at end of file
+../../../wmf-config/PoolCounterSettings-eqiad.php
\ No newline at end of file
diff --git a/docroot/noc/conf/PoolCounterSettings-pmtpa.php.txt 
b/docroot/noc/conf/PoolCounterSettings-pmtpa.php.txt
index f4d4791..61c5c3f 120000
--- a/docroot/noc/conf/PoolCounterSettings-pmtpa.php.txt
+++ b/docroot/noc/conf/PoolCounterSettings-pmtpa.php.txt
@@ -1 +1 @@
-../../wmf-config/PoolCounterSettings-pmtpa.php
\ No newline at end of file
+../../../wmf-config/PoolCounterSettings-pmtpa.php
\ No newline at end of file
diff --git a/docroot/noc/conf/StartProfiler.php.txt 
b/docroot/noc/conf/StartProfiler.php.txt
index c5e7ebb..8e71238 120000
--- a/docroot/noc/conf/StartProfiler.php.txt
+++ b/docroot/noc/conf/StartProfiler.php.txt
@@ -1 +1 @@
-../../wmf-config/StartProfiler.php
\ No newline at end of file
+../../../wmf-config/StartProfiler.php
\ No newline at end of file
diff --git a/docroot/noc/conf/abusefilter.php.txt 
b/docroot/noc/conf/abusefilter.php.txt
index c96bfca..2db1202 120000
--- a/docroot/noc/conf/abusefilter.php.txt
+++ b/docroot/noc/conf/abusefilter.php.txt
@@ -1 +1 @@
-../../wmf-config/abusefilter.php
\ No newline at end of file
+../../../wmf-config/abusefilter.php
\ No newline at end of file
diff --git a/docroot/noc/conf/codereview.php.txt 
b/docroot/noc/conf/codereview.php.txt
index a12b4d5..45c0760 120000
--- a/docroot/noc/conf/codereview.php.txt
+++ b/docroot/noc/conf/codereview.php.txt
@@ -1 +1 @@
-../../wmf-config/codereview.php
\ No newline at end of file
+../../../wmf-config/codereview.php
\ No newline at end of file
diff --git a/docroot/noc/conf/db-eqiad.php.txt 
b/docroot/noc/conf/db-eqiad.php.txt
index 50738f4..bc42d28 120000
--- a/docroot/noc/conf/db-eqiad.php.txt
+++ b/docroot/noc/conf/db-eqiad.php.txt
@@ -1 +1 @@
-../../wmf-config/db-eqiad.php
\ No newline at end of file
+../../../wmf-config/db-eqiad.php
\ No newline at end of file
diff --git a/docroot/noc/conf/db-labs.php.txt b/docroot/noc/conf/db-labs.php.txt
index 9d08049..316b06a 120000
--- a/docroot/noc/conf/db-labs.php.txt
+++ b/docroot/noc/conf/db-labs.php.txt
@@ -1 +1 @@
-../../wmf-config/db-labs.php
\ No newline at end of file
+../../../wmf-config/db-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/db-pmtpa.php.txt 
b/docroot/noc/conf/db-pmtpa.php.txt
index c54bb66..585b920 120000
--- a/docroot/noc/conf/db-pmtpa.php.txt
+++ b/docroot/noc/conf/db-pmtpa.php.txt
@@ -1 +1 @@
-../../wmf-config/db-pmtpa.php
\ No newline at end of file
+../../../wmf-config/db-pmtpa.php
\ No newline at end of file
diff --git a/docroot/noc/conf/db-secondary.php.txt 
b/docroot/noc/conf/db-secondary.php.txt
new file mode 120000
index 0000000..1f4f69e
--- /dev/null
+++ b/docroot/noc/conf/db-secondary.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/db-secondary.php
\ No newline at end of file
diff --git a/docroot/noc/conf/ext-labs.php.txt 
b/docroot/noc/conf/ext-labs.php.txt
new file mode 120000
index 0000000..6f455d1
--- /dev/null
+++ b/docroot/noc/conf/ext-labs.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/ext-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/ext-production.php.txt 
b/docroot/noc/conf/ext-production.php.txt
new file mode 120000
index 0000000..59e6d56
--- /dev/null
+++ b/docroot/noc/conf/ext-production.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/ext-production.php
\ No newline at end of file
diff --git a/docroot/noc/conf/filebackend-labs.php.txt 
b/docroot/noc/conf/filebackend-labs.php.txt
new file mode 120000
index 0000000..32e1b54
--- /dev/null
+++ b/docroot/noc/conf/filebackend-labs.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/filebackend-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/filebackend.php.txt 
b/docroot/noc/conf/filebackend.php.txt
index 782d74a..c4a02e9 120000
--- a/docroot/noc/conf/filebackend.php.txt
+++ b/docroot/noc/conf/filebackend.php.txt
@@ -1 +1 @@
-../../wmf-config/filebackend.php
\ No newline at end of file
+../../../wmf-config/filebackend.php
\ No newline at end of file
diff --git a/docroot/noc/conf/flaggedrevs.php.txt 
b/docroot/noc/conf/flaggedrevs.php.txt
index 0508300..1a52b65 120000
--- a/docroot/noc/conf/flaggedrevs.php.txt
+++ b/docroot/noc/conf/flaggedrevs.php.txt
@@ -1 +1 @@
-../../wmf-config/flaggedrevs.php
\ No newline at end of file
+../../../wmf-config/flaggedrevs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/highlight.php b/docroot/noc/conf/highlight.php
index 05553be..e836697 100644
--- a/docroot/noc/conf/highlight.php
+++ b/docroot/noc/conf/highlight.php
@@ -1,19 +1,19 @@
 <?php
-// Only allow viewing of files of which there is a copy (or link)
-// in noc/conf/* by the same name.
-$viewFilenames = array_map( 'basename', glob( __DIR__ . '/*' ) );
-
 $srcFilename = $_GET['file'];
-
 $viewFilename = false;
 $srcDir = false;
 
-foreach ( $viewFilenames as $view ) {
-       $src = substr( $view, -4 ) === '.txt'
-               ? substr( $view, 0, -4 )
-               : $view;
-       if ( $srcFilename === $src ) {
-               $viewFilename = $view;
+// Build whitelist
+// Only allow viewing of files of which there is a link noc/conf/* by the same 
name.
+$viewFilenames = array_map( 'basename', glob( __DIR__ . '/*' ) );
+
+foreach ( $viewFilenames as &$viewFilename ) {
+       // Map .txt links to the original filename
+       if ( substr( $viewFilename, -4 ) === '.txt' ) {
+               $viewFilename =  substr( $viewFilename, 0, -4 );
+       }
+       if ( $srcFilename === $viewFilename ) {
+               $viewFilename = $viewFilename;
                break;
        }
 }
@@ -22,19 +22,19 @@
 header( 'Content-Type: text/html; charset=utf-8' );
 
 if ( !$viewFilename ) {
-       # Secret site password distribution :-D
-       # First implement access control
-       if ( isset( $_SERVER['HTTP_REFERER'] ) && strpos( 
$_SERVER['HTTP_REFERER'], 'google' ) !== false ) {
-               header( "HTTP/1.1 404 Not Found" );
+       header( "HTTP/1.1 404 Not Found" );
+       if ( isset( $_SERVER['HTTP_REFERER'] ) && strpos( strtolower( 
$_SERVER['HTTP_REFERER'] ), 'google' ) !== false ) {
                echo "File not found\n";
                exit;
        }
-       # OK, authenticated developer, send password
+       // Easter egg
        $hlHtml = highlight_string( '<'."?php\n\$secretSitePassword = 
'jgmeidj28gms';\n", true );
-} else {
-       $baseSrcDir = '/home/wikipedia/common';
 
-       // Find where it is
+} else {
+       // Location: /home/wikipedia/common/ | docroot/noc/conf
+       $baseSrcDir = dirname( dirname( dirname( __DIR__ ) ) );
+
+       // Find the original
        if ( file_exists( "$baseSrcDir/wmf-config/$srcFilename" ) ) {
                $srcPath = "$baseSrcDir/wmf-config/$srcFilename";
                $srcDir = 'wmf-config/';
@@ -51,7 +51,7 @@
                        $hlHtml = str_replace( '&nbsp;', ' ', $hlHtml ); // 
https://bugzilla.wikimedia.org/19253
                        $hlHtml = str_replace( '    ', "\t", $hlHtml ); // 
convert 4 spaces to 1 tab character; bug #36576
                } else {
-                       $hlHtml = htmlspecialchars( file_get_contents( __DIR__ 
. '/' . $srcFilename ) );
+                       $hlHtml = htmlspecialchars( file_get_contents( $srcPath 
) );
                }
        } else {
                $hlHtml = 'Failed to read file. :(';
@@ -67,8 +67,9 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <title><?php echo $titleSrcFilename; ?></title>
-       <link rel="stylesheet" href="/base.css">
+       <title><?php echo $titleSrcFilename; ?> - Wikimedia configuration 
files</title>
+       <link rel="shortcut icon" href="//bits.wikimedia.org/favicon/wmf.ico">
+       <link rel="stylesheet" href="../base.css">
 </head>
 <body>
 <h1><a href="./">&laquo;</a> <?php echo $titleSrcFilename; ?></h1>
diff --git a/docroot/noc/conf/index.php b/docroot/noc/conf/index.php
index 4258a62..29789a0 100644
--- a/docroot/noc/conf/index.php
+++ b/docroot/noc/conf/index.php
@@ -2,6 +2,7 @@
 <html lang="en">
 <head>
        <title>Wikimedia configuration files</title>
+       <link rel="shortcut icon" href="//bits.wikimedia.org/favicon/wmf.ico">
        <link rel="stylesheet" href="../base.css">
 </head>
 <body>
@@ -28,10 +29,8 @@
 <ul>
 <?php
        $viewFilenames = array_merge(
-               glob( __DIR__ . '/*.dat' ),
-               glob( __DIR__ . '/*.php.txt' )
+               glob( __DIR__ . '/*.txt' )
        );
-       $viewFilenames[] = './langlist';
        outputFiles( $viewFilenames );
        function outputFiles( $viewFilenames, $highlight = true ) {
                $viewFilenames = array_map( 'basename', $viewFilenames );
diff --git a/docroot/noc/conf/jobqueue-eqiad.php.txt 
b/docroot/noc/conf/jobqueue-eqiad.php.txt
new file mode 120000
index 0000000..f3ff1d0
--- /dev/null
+++ b/docroot/noc/conf/jobqueue-eqiad.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/jobqueue-eqiad.php
\ No newline at end of file
diff --git a/docroot/noc/conf/jobqueue-pmtpa.php.txt 
b/docroot/noc/conf/jobqueue-pmtpa.php.txt
new file mode 120000
index 0000000..21ec281
--- /dev/null
+++ b/docroot/noc/conf/jobqueue-pmtpa.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/jobqueue-pmtpa.php
\ No newline at end of file
diff --git a/docroot/noc/conf/langlist b/docroot/noc/conf/langlist
deleted file mode 120000
index b3340e1..0000000
--- a/docroot/noc/conf/langlist
+++ /dev/null
@@ -1 +0,0 @@
-/home/wikipedia/common/langlist
\ No newline at end of file
diff --git a/docroot/noc/conf/langlist.txt b/docroot/noc/conf/langlist.txt
new file mode 120000
index 0000000..b4e7a45
--- /dev/null
+++ b/docroot/noc/conf/langlist.txt
@@ -0,0 +1 @@
+../../../wmf-config/langlist
\ No newline at end of file
diff --git a/docroot/noc/conf/liquidthreads.php.txt 
b/docroot/noc/conf/liquidthreads.php.txt
index a1ee016..e29dcbe 120000
--- a/docroot/noc/conf/liquidthreads.php.txt
+++ b/docroot/noc/conf/liquidthreads.php.txt
@@ -1 +1 @@
-../../wmf-config/liquidthreads.php
\ No newline at end of file
+../../../wmf-config/liquidthreads.php
\ No newline at end of file
diff --git a/docroot/noc/conf/logging-labs.php.txt 
b/docroot/noc/conf/logging-labs.php.txt
new file mode 120000
index 0000000..95c1aa0
--- /dev/null
+++ b/docroot/noc/conf/logging-labs.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/logging-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/lucene-common.php.txt 
b/docroot/noc/conf/lucene-common.php.txt
index 1c74e0e..569ae5e 120000
--- a/docroot/noc/conf/lucene-common.php.txt
+++ b/docroot/noc/conf/lucene-common.php.txt
@@ -1 +1 @@
-../../wmf-config/lucene-common.php
\ No newline at end of file
+../../../wmf-config/lucene-common.php
\ No newline at end of file
diff --git a/docroot/noc/conf/lucene-labs.php.txt 
b/docroot/noc/conf/lucene-labs.php.txt
index 0b697dc..b7fcb2f 120000
--- a/docroot/noc/conf/lucene-labs.php.txt
+++ b/docroot/noc/conf/lucene-labs.php.txt
@@ -1 +1 @@
-../../wmf-config/lucene-labs.php
\ No newline at end of file
+../../../wmf-config/lucene-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/lucene-production.php.txt 
b/docroot/noc/conf/lucene-production.php.txt
index 914e82d..233c03d 120000
--- a/docroot/noc/conf/lucene-production.php.txt
+++ b/docroot/noc/conf/lucene-production.php.txt
@@ -1 +1 @@
-../../wmf-config/lucene-production.php
\ No newline at end of file
+../../../wmf-config/lucene-production.php
\ No newline at end of file
diff --git a/docroot/noc/conf/mc-eqiad.php.txt 
b/docroot/noc/conf/mc-eqiad.php.txt
index 2bef006..e12bef6 120000
--- a/docroot/noc/conf/mc-eqiad.php.txt
+++ b/docroot/noc/conf/mc-eqiad.php.txt
@@ -1 +1 @@
-../../wmf-config/mc-eqiad.php
\ No newline at end of file
+../../../wmf-config/mc-eqiad.php
\ No newline at end of file
diff --git a/docroot/noc/conf/mc-labs.php.txt b/docroot/noc/conf/mc-labs.php.txt
index bc7564b..30e2b6a 120000
--- a/docroot/noc/conf/mc-labs.php.txt
+++ b/docroot/noc/conf/mc-labs.php.txt
@@ -1 +1 @@
-../../wmf-config/mc-labs.php
\ No newline at end of file
+../../../wmf-config/mc-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/mc-pmtpa.php.txt 
b/docroot/noc/conf/mc-pmtpa.php.txt
index 068cf56..f1524e5 120000
--- a/docroot/noc/conf/mc-pmtpa.php.txt
+++ b/docroot/noc/conf/mc-pmtpa.php.txt
@@ -1 +1 @@
-../../wmf-config/mc-pmtpa.php
\ No newline at end of file
+../../../wmf-config/mc-pmtpa.php
\ No newline at end of file
diff --git a/docroot/noc/conf/missing.php.txt b/docroot/noc/conf/missing.php.txt
new file mode 120000
index 0000000..669b568
--- /dev/null
+++ b/docroot/noc/conf/missing.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/missing.php
\ No newline at end of file
diff --git a/docroot/noc/conf/mobile-labs.php.txt 
b/docroot/noc/conf/mobile-labs.php.txt
new file mode 120000
index 0000000..9a6afd1
--- /dev/null
+++ b/docroot/noc/conf/mobile-labs.php.txt
@@ -0,0 +1 @@
+../../../wmf-config/mobile-labs.php
\ No newline at end of file
diff --git a/docroot/noc/conf/mobile.php.txt b/docroot/noc/conf/mobile.php.txt
index b883fae..2ec8a4b 120000
--- a/docroot/noc/conf/mobile.php.txt
+++ b/docroot/noc/conf/mobile.php.txt
@@ -1 +1 @@
-../../wmf-config/mobile.php
\ No newline at end of file
+../../../wmf-config/mobile.php
\ No newline at end of file
diff --git a/docroot/noc/conf/proofreadpage.php.txt 
b/docroot/noc/conf/proofreadpage.php.txt
index a1c6589..26cde3a 120000
--- a/docroot/noc/conf/proofreadpage.php.txt
+++ b/docroot/noc/conf/proofreadpage.php.txt
@@ -1 +1 @@
-../../wmf-config/proofreadpage.php
\ No newline at end of file
+../../../wmf-config/proofreadpage.php
\ No newline at end of file
diff --git a/docroot/noc/conf/throttle.php.txt 
b/docroot/noc/conf/throttle.php.txt
index 9c20dac..62f0238 120000
--- a/docroot/noc/conf/throttle.php.txt
+++ b/docroot/noc/conf/throttle.php.txt
@@ -1 +1 @@
-../../wmf-config/throttle.php
\ No newline at end of file
+../../../wmf-config/throttle.php
\ No newline at end of file
diff --git a/docroot/noc/conf/wgConf.php.txt b/docroot/noc/conf/wgConf.php.txt
index e1fc6a9..8d7826e 120000
--- a/docroot/noc/conf/wgConf.php.txt
+++ b/docroot/noc/conf/wgConf.php.txt
@@ -1 +1 @@
-../../wmf-config/wgConf.php
\ No newline at end of file
+../../../wmf-config/wgConf.php
\ No newline at end of file
diff --git a/docroot/noc/conf/wikiversions.dat.txt 
b/docroot/noc/conf/wikiversions.dat.txt
new file mode 120000
index 0000000..0465e33
--- /dev/null
+++ b/docroot/noc/conf/wikiversions.dat.txt
@@ -0,0 +1 @@
+../../../wmf-config/wikiversions.dat
\ No newline at end of file
diff --git a/docroot/noc/createTxtFileSymlinks.sh 
b/docroot/noc/createTxtFileSymlinks.sh
index c9249e2..963e04a 100755
--- a/docroot/noc/createTxtFileSymlinks.sh
+++ b/docroot/noc/createTxtFileSymlinks.sh
@@ -1,8 +1,11 @@
 #!/bin/bash
-cd $(dirname $0)
+cd $(dirname $0)/conf
 
 files_array=(
+       # wmf-config/*.php
+       CommonSettings-labs.php
        CommonSettings.php
+       InitialiseSettings-labs.php
        InitialiseSettings.php
        PoolCounterSettings-eqiad.php
        PoolCounterSettings-pmtpa.php
@@ -12,28 +15,40 @@
        db-eqiad.php
        db-labs.php
        db-pmtpa.php
+       db-secondary.php
+       ext-labs.php
+       ext-production.php
+       filebackend-labs.php
        filebackend.php
        flaggedrevs.php
+       jobqueue-eqiad.php
+       jobqueue-pmtpa.php
        liquidthreads.php
+       logging-labs.php
        lucene-common.php
        lucene-labs.php
        lucene-production.php
        mc-eqiad.php
        mc-labs.php
        mc-pmtpa.php
+       missing.php
+       mobile-labs.php
        mobile.php
        proofreadpage.php
        throttle.php
        wgConf.php
+
+       wikiversions.dat
+       langlist
 )
 
 # if -e returns false if there is a symlink but target does not exist locally
-if ls ./conf/*.txt >/dev/null 2>&1
+if ls ./*.txt >/dev/null 2>&1
 then
-       rm ./conf/*.txt
+       rm ./*.txt
 fi
 
 for i in "${files_array[@]}"
 do
-   ln -s ../../../wmf-config/$i conf/$i.txt
+   ln -s ../../../wmf-config/$i ./$i.txt
 done

-- 
To view, visit https://gerrit.wikimedia.org/r/58272
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d8a2a0ca8da54c9a22cfe45e98a062c425d22d3
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to