Tim Starling has uploaded a new change for review.
https://gerrit.wikimedia.org/r/64023
Change subject: Remove three more scap scripts which were moved to puppet
......................................................................
Remove three more scap scripts which were moved to puppet
Change-Id: Ibaed20197f85ab853dfe1a6b1ebc1f7468b5af44
---
M debian/rules
D find-nearest-rsync
D mwversionsinuse
D scap-1skins
4 files changed, 1 insertion(+), 63 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/operations/debs/wikimedia-task-appserver
refs/changes/23/64023/1
diff --git a/debian/rules b/debian/rules
index 167f8f9..a95cf1e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -52,7 +52,7 @@
install -d -m 0755 $(DESTDIR)/usr/bin
install -d -m 0755 $(DESTDIR)/usr/sbin
install -m 0755 apache-sanity-check apache-start check-time
$(DESTDIR)/usr/bin
- install -m 0755 scap-1skins scap-recompile mwversionsinuse mw-cksum
mw-cksum-list find-nearest-rsync $(DESTDIR)/usr/bin
+ install -m 0755 scap-recompile mw-cksum mw-cksum-list $(DESTDIR)/usr/bin
# Build architecture-independent files here.
binary-indep: build install
diff --git a/find-nearest-rsync b/find-nearest-rsync
deleted file mode 100755
index a9eff89..0000000
--- a/find-nearest-rsync
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use Net::Ping;
-
-my $verbose = 0;
-if ( $#ARGV >= 0 && $ARGV[0] eq '--verbose' ) {
- $verbose = 1;
- shift;
-}
-
-if ( $#ARGV < 0 ) {
- print STDERR "Usage: find-nearest-rsync [--verbose] <host> [<host>
...]\n";
- exit( 1 );
-}
-
-my( $bestHost, $bestRTT );
-my $p = Net::Ping->new( "icmp", 2 );
-$p->hires();
-
-foreach my $host ( @ARGV ) {
- my ( $success, $rtt, $ip ) = $p->ping( $host );
- if ( not defined( $bestHost ) ) {
- $bestHost = $host;
- $bestRTT = $rtt;
- } elsif ( $rtt < $bestRTT ) {
- $bestRTT = $rtt;
- $bestHost = $host;
- }
- if ( $verbose ) {
- printf STDERR "%s: %.6f\n", ( $host, $rtt * 1000 );
- }
-}
-
-if ( not defined( $bestHost ) ) {
- print STDERR "find-nearest-rsync: No hosts replied!\n";
- exit( 1 );
-}
-print "$bestHost\n";
-
diff --git a/mwversionsinuse b/mwversionsinuse
deleted file mode 100644
index 1f7fafc..0000000
--- a/mwversionsinuse
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-# Shell wrapper for the local version of multiversion/activeMWVersions.
-# This script belongs in /usr/bin/ and should be in PATH.
-if ! /usr/local/apache/common-local/multiversion/activeMWVersions "$@"; then
- exit 1
-fi
diff --git a/scap-1skins b/scap-1skins
deleted file mode 100644
index 0e0e89d..0000000
--- a/scap-1skins
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-mwVersionNums=$(mwversionsinuse)
-if [ -z "$mwVersionNums" ]; then
- echo "Unable to read wikiversions.dat or it is empty"
- exit 1
-fi
-
-for mwVerNum in ${mwVersionNums[@]}; do
- sudo -u mwdeploy sh -c "
- rsync -a --no-perms 10.0.5.8::common/php-$mwVerNum/skins/ \
- /usr/local/apache/common-local/php-$mwVerNum/skins && \
- echo ok || \
- echo failed
- "
-done
--
To view, visit https://gerrit.wikimedia.org/r/64023
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibaed20197f85ab853dfe1a6b1ebc1f7468b5af44
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/wikimedia-task-appserver
Gerrit-Branch: master
Gerrit-Owner: Tim Starling <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits