Commit 4321fefc authored by Michael Shigorin's avatar Michael Shigorin

live, repo, rescue: use yandex mirror

...instead of (often-crowded) ftp.altlinux.org for updates.
parent 2f6457ea
...@@ -7,4 +7,4 @@ PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync ...@@ -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"
#!/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
......
#!/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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment