vm/spec: fix adding yum-proxy configuration

Do not add entry if already present.
This commit is contained in:
Marek Marczykowski 2012-10-04 05:29:10 +02:00
parent 4e84c642f9
commit c898eae21c

View File

@ -257,7 +257,7 @@ if ! [ -e /lib/firmware/updates ]; then
ln -s /lib/modules/firmware /lib/firmware/updates
fi
if ! grep -q '/etc/yum\.conf\.d/qubes-proxy\.conf'; then
if ! grep -q '/etc/yum\.conf\.d/qubes-proxy\.conf' /etc/yum.conf; then
echo >> /etc/yum.conf
echo '# Yum does not support inclusion of config dir...' >> /etc/yum.conf
echo 'include=file:///etc/yum.conf.d/qubes-proxy.conf' >> /etc/yum.conf