Home Home > GIT Browse > SLE12-SP5
summaryrefslogtreecommitdiff
blob: fdeeff0ffc4e55eebf49bd7126acf78ab2bcdc18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

echo "This script disables pushing of the internal git tree to public mirrors. Use it"
echo "if an embargoed security fix has been accidentally pushed to a public branch."
echo "Please describe the reason to cancel mirroring (hit Return to cancel):"
read -p "> " -e
if test -z "$REPLY"; then
	echo "No reason given, exiting"
	exit 1
fi

(set -x; curl -d "reason=$REPLY" http://kerncvs.suse.de/stop-sync.cgi)
res=$?
if test $res -ne 0; then
	echo "The curl command failed. Please check your vpn config before panicking."
fi
exit $res