diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-10-01 18:05:55 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-10-01 18:05:55 +0200 |
commit | be93ab35744b0a9674836c888bff07775bd738e7 (patch) | |
tree | 7b23ffa647b9813b536fe28a9b7925d5ddfd99d3 /mirror | |
parent | 19a690cbc043f398e4eb6d8b328e3e5f257fe830 (diff) |
more https (add httpsmirror list)
Diffstat (limited to 'mirror')
-rwxr-xr-x | mirror | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |