From be93ab35744b0a9674836c888bff07775bd738e7 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 1 Oct 2016 18:05:55 +0200 Subject: more https (add httpsmirror list) --- mirror | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'mirror') 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 -- cgit