all wikimedia servers return fully qualified domain name in `hostname`
authorDomas Mituzas <midom@users.mediawiki.org>
Wed, 14 Jul 2004 06:23:10 +0000 (06:23 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Wed, 14 Jul 2004 06:23:10 +0000 (06:23 +0000)
there's no need of linux-specific -a flag. warnings--

maintenance/commandLine.inc

index dc895f1..aae1c7a 100644 (file)
@@ -61,7 +61,7 @@ $wgCommandLineMode = true;
 @ob_end_flush();
 $sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
 
-if ( $sep == ":" && strpos( `hostname -a`, "wikimedia.org" ) !== false ) {
+if ( $sep == ":" && strpos( `hostname`, "wikimedia.org" ) !== false ) {
        $wgWikiFarm = true;
        if ( isset( $args[0] ) ) {
                $lang = array_shift( $args );