Ori.livneh has uploaded a new change for review.

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

Change subject: Delete MWRealm.sh; now unused
......................................................................

Delete MWRealm.sh; now unused

Change-Id: I63dea4cb3db40a1b9797eef77a5f0146f0123697
---
D multiversion/MWRealm.sh
1 file changed, 0 insertions(+), 65 deletions(-)


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

diff --git a/multiversion/MWRealm.sh b/multiversion/MWRealm.sh
deleted file mode 100644
index e1b7193..0000000
--- a/multiversion/MWRealm.sh
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-
-WMF_REALM=production
-WMF_DATACENTER=pmtpa
-
-if [ -f /etc/wikimedia-realm ]
-then
-       WMF_REALM=`cat /etc/wikimedia-realm`
-fi
-if [ -f /etc/wikimedia-site ]
-then
-       WMF_DATACENTER=`cat /etc/wikimedia-site`
-fi
-
-# Validate settings
-case "$WMF_REALM" in
-       "production"|"labs")
-               case "$WMF_DATACENTER" in
-                       "eqiad")
-                               ;;
-                       *)
-                               WMF_DATACENTER=eqiad
-                               ;;
-               esac
-               ;;
-
-       *)
-               # Assume something vaguely resembling a default
-               WMF_REALM=production
-               WMF_DATACENTER=eqiad
-               ;;
-esac
-
-# Function to get the filename for the current realm/datacenter, falling back
-# to the "base" file if not found.
-#
-# Files checked are:
-#   base-realm-datacenter.ext
-#   base-realm.ext
-#   base.ext
-#
-# @note The full path to the file is returned, not just the filename
-#
-# @param $filename Full path to file. Must contain an extension
-# @output string Full path to file to be used
-getRealmSpecificFilename () {
-       BASE=${1%.*}
-       EXT=${1##*.}
-       RET=$1
-
-       if [ -f "$BASE-$WMF_REALM-$WMF_DATACENTER.$EXT" ]
-       then
-               RET="$BASE-$WMF_REALM-$WMF_DATACENTER.$EXT"
-       elif [ -f "$BASE-$WMF_REALM.$EXT" ]
-       then
-               RET="$BASE-$WMF_REALM.$EXT"
-       elif [ -f "$BASE-$WMF_DATACENTER.$EXT" ]
-       then
-               RET="$BASE-$WMF_DATACENTER.$EXT"
-       else
-               RET="$1"
-       fi
-
-       printf %s "$RET"
-}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I63dea4cb3db40a1b9797eef77a5f0146f0123697
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

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

Reply via email to