diff options
Diffstat (limited to 'mirror')
-rwxr-xr-x | mirror | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -11,7 +11,7 @@ add) if [ -z "$2" ]; then echo "Missing mirror path" exit 1 fi - for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror + for fic in */{8,9,39,40,41}/*/*/mirror do n=0 if grep -q "/archives/" $fic @@ -21,7 +21,8 @@ add) if [ -z "$2" ]; then if ! grep -q "^$2" $fic then grep remirepo.net $fic | \ - sed -e "s|http://rpms.remirepo.net|$2|" >>$fic + sed -e "s|http://rpms.remirepo.net|$2|" | \ + sed -e "s|https://rpms.remirepo.net|$2|" >>$fic if grep $2 $fic then echo "Add in $fic" @@ -36,7 +37,7 @@ on) if [ -z "$2" ]; then echo "Missing mirror path" exit 1 fi - for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror + for fic in */?/*/mirror */{?,??}/*/*/mirror do if grep -q "^## .*$2" $fic then @@ -50,7 +51,7 @@ off) if [ -z "$2" ]; then echo "Missing mirror path" exit 1 fi - for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror + for fic in */?/*/mirror */{?,??}/*/*/mirror do if grep -q "^http.*$2" $fic then @@ -64,7 +65,7 @@ del) if [ -z "$2" ]; then echo "Missing mirror path" exit 1 fi - for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror + for fic in */?/*/mirror */{?,??}/*/*/mirror do if grep -q "$2" $fic then @@ -78,12 +79,12 @@ status) if [ -z "$2" ]; then echo "Missing mirror path" exit 1 fi - grep -- "$2" */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror + grep -- "$2" */?/*/mirror */{?,??}/*/*/mirror ;; https) echo "Generating https mirror list" - for i in enterprise/{5,6,7}/*/mirror fedora/2?/*/mirror */{8,??}/*/*/mirror + for i in enterprise/?/*/mirror */{?,??}/*/*/mirror do j=$(dirname $i)/httpsmirror grep '^https' $i >$j @@ -92,7 +93,7 @@ https) ;; *) echo -e "\nMirror list:\n" - cat enterprise/7/remi/mirror + cat enterprise/9/remi/x86_64/mirror ;; esac |