Skip to content

Commit

Permalink
CDPR-44 Fix /etc/yum.conf append
Browse files Browse the repository at this point in the history
  • Loading branch information
Bajzathd committed Sep 29, 2021
1 parent 633f7be commit 7e2bdd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/salt-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ function install_with_yum() {
yum install -y zeromq zeromq-devel
fi
install_python_pip
if [ ! -z $(grep "^exclude=" /etc/yum.conf) ]; then
sed -i 's/^exclude=.*$/& salt/g' /etc/yum.conf
else
if [ -z "$(grep "^exclude=" /etc/yum.conf)" ]; then
echo "exclude=salt" >> /etc/yum.conf
else
sed -i 's/^exclude=.*$/& salt/g' /etc/yum.conf
fi
install_salt_with_pip
create_temp_minion_config
Expand Down

0 comments on commit 7e2bdd7

Please sign in to comment.