diff --git a/setup/so-functions b/setup/so-functions index 86ef60203..e1467191e 100755 --- a/setup/so-functions +++ b/setup/so-functions @@ -2685,8 +2685,8 @@ set_updates() { if [ "$MANAGERUPDATES" = '1' ]; then if [ "$OS" = 'centos' ]; then if [[ ! $is_airgap ]] && ! ( grep -q "$MSRV" /etc/yum.conf); then - if grep -q "proxy="; then - sed -i "s/proxy=.*/proxy=http:\/\/$MSRV:3142/" + if grep -q "proxy=" /etc/yum.conf; then + sed -i "s/proxy=.*/proxy=http:\/\/$MSRV:3142/" /etc/yum.conf else echo "proxy=http://$MSRV:3142" >> /etc/yum.conf fi