live, repo, rescue: use yandex mirror

...instead of (often-crowded) ftp.altlinux.org for updates.
This commit is contained in:
Michael Shigorin 2017-04-14 16:21:12 +03:00
parent 2f6457eaed
commit 4321fefc60
3 changed files with 3 additions and 3 deletions

View File

@ -7,4 +7,4 @@ PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync
MIRROR="${GLOBAL_LIVE_REPO#*/}" # alt, heanet, kiev, yandex, ...
sed -i "s,^#\(rpm \[.*\] ${PROTO:-http}.*\),\1," \
"/etc/apt/sources.list.d/${MIRROR:-alt}.list"
"/etc/apt/sources.list.d/${MIRROR:-yandex}.list"

View File

@ -1,7 +1,7 @@
#!/bin/sh
# enable online repos if possible, just quit if anything's wrong
repo_source='/etc/apt/sources.list.d/alt.list'
repo_source='/etc/apt/sources.list.d/yandex.list'
[ -s "$repo_source" ] || exit 0

View File

@ -1,4 +1,4 @@
#!/bin/sh
# enable online repository even more unconditionally
sed -i "s,^#\(rpm \[alt\] http.*\),\1," "/etc/apt/sources.list.d/alt.list"
sed -i "s,^#\(rpm \[alt\] http.*\),\1," "/etc/apt/sources.list.d/yandex.list"