mirror of
https://pagure.io/fedora-kickstarts.git
synced 2024-12-30 14:53:09 +00:00
26 lines
373 B
Plaintext
26 lines
373 B
Plaintext
|
# %post modifications to enable debuginfo repository
|
||
|
|
||
|
awk '
|
||
|
BEGIN {
|
||
|
debuginfo = 0
|
||
|
}
|
||
|
/^\[.*\]/ {
|
||
|
if (/debuginfo/) {
|
||
|
debuginfo = 1
|
||
|
} else {
|
||
|
debuginfo = 0
|
||
|
}
|
||
|
print
|
||
|
next
|
||
|
}
|
||
|
/enabled=0/ && debuginfo {
|
||
|
print "enabled=1"
|
||
|
next
|
||
|
}
|
||
|
{
|
||
|
print
|
||
|
next
|
||
|
}' < /etc/yum.repos.d/fedora.repo > /etc/yum.repos.d/fedora.repo.tmp
|
||
|
mv /etc/yum.repos.d/fedora.repo{.tmp,}
|
||
|
|