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:
parent
574058a764
commit
e4077b2bbf
@ -6,5 +6,5 @@
|
|||||||
PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync
|
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 \[alt\] ${PROTO:-http}.*\),\1," \
|
sed -i "s,^#\(rpm \[.*\] ${PROTO:-http}.*\),\1," \
|
||||||
"/etc/apt/sources.list.d/${MIRROR:-alt}.list"
|
"/etc/apt/sources.list.d/${MIRROR:-alt}.list"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user