From: Domas Mituzas Date: Wed, 14 Jul 2004 06:23:10 +0000 (+0000) Subject: all wikimedia servers return fully qualified domain name in `hostname` X-Git-Tag: 1.5.0alpha1~2681 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=a8bdd044ad6b37a9fb6890aeb7a05848d76a12dc;p=lhc%2Fweb%2Fwiklou.git all wikimedia servers return fully qualified domain name in `hostname` there's no need of linux-specific -a flag. warnings-- --- diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index dc895f129c..aae1c7a6ae 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -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 );