live, repo, rescue: use yandex mirror
...instead of (often-crowded) ftp.altlinux.org for updates.
This commit is contained in:
parent
2f6457eaed
commit
4321fefc60
@ -7,4 +7,4 @@ PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync
|
|||||||
MIRROR="${GLOBAL_LIVE_REPO#*/}" # alt, heanet, kiev, yandex, ...
|
MIRROR="${GLOBAL_LIVE_REPO#*/}" # alt, heanet, kiev, yandex, ...
|
||||||
|
|
||||||
sed -i "s,^#\(rpm \[.*\] ${PROTO:-http}.*\),\1," \
|
sed -i "s,^#\(rpm \[.*\] ${PROTO:-http}.*\),\1," \
|
||||||
"/etc/apt/sources.list.d/${MIRROR:-alt}.list"
|
"/etc/apt/sources.list.d/${MIRROR:-yandex}.list"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# enable online repos if possible, just quit if anything's wrong
|
# 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
|
[ -s "$repo_source" ] || exit 0
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# enable online repository even more unconditionally
|
# 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user