fix other OS installs

This commit is contained in:
Mike Reeves
2023-07-18 15:19:10 -04:00
parent 737da45e7f
commit c94436fcbd
2 changed files with 4 additions and 0 deletions

View File

@@ -210,6 +210,9 @@ gpg_rpm_import() {
rpm --import $RPMKEYSLOC/$RPMKEY rpm --import $RPMKEYSLOC/$RPMKEY
echo "Imported $RPMKEY" echo "Imported $RPMKEY"
done done
else
info "Importing the security onion GPG key"
rpm --import ../salt/repo/client/files/oracle/keys/securityonion.pub
fi fi
} }

View File

@@ -2002,6 +2002,7 @@ repo_sync_local() {
if [[ $is_rpm ]]; then if [[ $is_rpm ]]; then
dnf -y install epel-release dnf -y install epel-release
dnf install -y yum-utils device-mapper-persistent-data lvm2 dnf install -y yum-utils device-mapper-persistent-data lvm2
curl -fsSL https://repo.securityonion.net/file/so-repo/prod/2.4/so/so.repo | tee /etc/yum.repos.d/so.repo
rpm --import https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub rpm --import https://repo.saltproject.io/salt/py3/redhat/9/x86_64/SALT-PROJECT-GPG-PUBKEY-2023.pub
if [[ $is_rhel ]]; then if [[ $is_rhel ]]; then
dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo