summaryrefslogtreecommitdiffstats
path: root/mirror
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-01 18:05:55 +0200
committerRemi Collet <fedora@famillecollet.com>2016-10-01 18:05:55 +0200
commitbe93ab35744b0a9674836c888bff07775bd738e7 (patch)
tree7b23ffa647b9813b536fe28a9b7925d5ddfd99d3 /mirror
parent19a690cbc043f398e4eb6d8b328e3e5f257fe830 (diff)
more https (add httpsmirror list)
Diffstat (limited to 'mirror')
-rwxr-xr-xmirror16
1 files changed, 14 insertions, 2 deletions
diff --git a/mirror b/mirror
index f4130ea0..e6d3e5f2 100755
--- a/mirror
+++ b/mirror
@@ -4,7 +4,7 @@ cd $(dirname $0)
case "$1" in
-help) echo -e "\nOptions: save resto diff add on off status\n"
+help) echo -e "\nOptions: save resto diff add on off status https\n"
;;
save) echo -n "Saving mirror definition..."
@@ -103,7 +103,19 @@ status) if [ -z "$2" ]; then
fi
grep -- "$2" */{?,??}/*/mirror
;;
- *) echo -e "\nMirror list:\n"
+
+https)
+ echo "Generating https mirror list"
+ for i in enterprise/{5,6,7}/*/mirror
+ do
+ j=$(dirname $i)/httpsmirror
+ grep '^https' $i >$j
+ grep 'remirepo.net' $i | sed -e 's/^http:/https:/' >>$j
+ done
+ ;;
+
+*) echo -e "\nMirror list:\n"
cat enterprise/7/remi/mirror
;;
+
esac