Commit e4077b2b authored by Michael Shigorin's avatar Michael Shigorin

live: fix broken regexp to actually enable repos

The problem with hardwired "[alt]" was that it's not going to match "[p7]", for example. Brown paper bag bug.
parent 574058a7
......@@ -6,5 +6,5 @@
PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync
MIRROR="${GLOBAL_LIVE_REPO#*/}" # alt, heanet, kiev, yandex, ...
sed -i "s,^#\(rpm \[alt\] ${PROTO:-http}.*\),\1," \
sed -i "s,^#\(rpm \[.*\] ${PROTO:-http}.*\),\1," \
"/etc/apt/sources.list.d/${MIRROR:-alt}.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