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.
This commit is contained in:
Michael Shigorin 2014-12-12 15:14:42 +03:00
parent 574058a764
commit e4077b2bbf

View File

@ -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"