summaryrefslogtreecommitdiffstats
path: root/mirror
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-02-11 12:05:44 +0100
committerRemi Collet <remi@remirepo.net>2019-02-11 12:05:44 +0100
commit05538d1450bc488c75deff1fc175874d322044a2 (patch)
tree00a5f59af5635e34b72d790cf8235273cfb9bd11 /mirror
parentb692b60bf797c646422a812d189ff2cab7e13386 (diff)
add http://mirrors.bytes.ua/remi/ new mirror in Ukraine
Diffstat (limited to 'mirror')
-rwxr-xr-xmirror35
1 files changed, 6 insertions, 29 deletions
diff --git a/mirror b/mirror
index 823475fd..1a6f8647 100755
--- a/mirror
+++ b/mirror
@@ -7,34 +7,11 @@ case "$1" in
help) echo -e "\nOptions: save resto diff add on off status https\n"
;;
-save) echo -n "Saving mirror definition..."
- tar cf - */{?,??}/*/mirror | tar xvf - -C save/
- echo " Done"
- ;;
-
-resto) echo -n "Restoring mirror definition..."
- tar cf - -C save */{?,??}/*/mirror | tar xvf -
- echo " Done"
- ;;
-
-diff) echo "Pending changes in mirror definition:"
- n=0
- for fic in */{?,??}/*/mirror
- do
- if ! diff -q save/$fic $fic >/dev/null; then
- echo "=== $fic"
- colordiff -a save/$fic $fic
- n=$(expr $n + 1)
- fi
- done
- [ $n -eq 0 ] && echo "None"
- ;;
-
add) if [ -z "$2" ]; then
echo "Missing mirror path"
exit 1
fi
- for fic in fedora/??/*/mirror enterprise/{5,6,7}/*/mirror
+ for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror
do
n=0
if grep -q "/archives/" $fic
@@ -59,7 +36,7 @@ on) if [ -z "$2" ]; then
echo "Missing mirror path"
exit 1
fi
- for fic in */{?,??}/*/mirror
+ for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror
do
if grep -q "^## .*$2" $fic
then
@@ -73,7 +50,7 @@ off) if [ -z "$2" ]; then
echo "Missing mirror path"
exit 1
fi
- for fic in */{?,??}/*/mirror
+ for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror
do
if grep -q "^http.*$2" $fic
then
@@ -87,7 +64,7 @@ del) if [ -z "$2" ]; then
echo "Missing mirror path"
exit 1
fi
- for fic in */{?,??}/*/mirror
+ for fic in */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror
do
if grep -q "$2" $fic
then
@@ -101,12 +78,12 @@ status) if [ -z "$2" ]; then
echo "Missing mirror path"
exit 1
fi
- grep -- "$2" */{?,??}/*/mirror
+ grep -- "$2" */{6,7,8,??}/*/mirror */{8,??}/*/*/mirror
;;
https)
echo "Generating https mirror list"
- for i in enterprise/{5,6,7}/*/mirror fedora/2?/*/mirror
+ for i in enterprise/{5,6,7}/*/mirror fedora/2?/*/mirror */{8,??}/*/*/mirror
do
j=$(dirname $i)/httpsmirror
grep '^https' $i >$j