Merge pull request #12293 from Security-Onion-Solutions/TOoSmOotH-patch-3

fix salt lock for airgap version mismatches
This commit is contained in:
Mike Reeves
2024-01-31 16:21:16 -05:00
committed by GitHub

View File

@@ -1933,7 +1933,11 @@ saltify() {
logCmd "dnf -y install salt-$SALTVERSION salt-master-$SALTVERSION salt-minion-$SALTVERSION"
else
# We just need the minion
logCmd "dnf -y install salt-$SALTVERSION salt-minion-$SALTVERSION"
if [[ $is_airgap ]]; then
logCmd "dnf -y install salt salt-minion"
else
logCmd "dnf -y install salt-$SALTVERSION salt-minion-$SALTVERSION"
fi
fi
fi