vm/spec: fix adding yum-proxy configuration
Do not add entry if already present.
This commit is contained in:
parent
5e696298cf
commit
490a5e9e1a
@ -257,7 +257,7 @@ if ! [ -e /lib/firmware/updates ]; then
|
|||||||
ln -s /lib/modules/firmware /lib/firmware/updates
|
ln -s /lib/modules/firmware /lib/firmware/updates
|
||||||
fi
|
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 >> /etc/yum.conf
|
||||||
echo '# Yum does not support inclusion of config dir...' >> /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
|
echo 'include=file:///etc/yum.conf.d/qubes-proxy.conf' >> /etc/yum.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user