Merge pull request #4005 from Security-Onion-Solutions/2350

Repo Fix
This commit is contained in:
Josh Patterson
2021-04-26 14:52:00 -04:00
committed by GitHub
2 changed files with 12 additions and 13 deletions

View File

@@ -453,7 +453,6 @@ up_2.3.3X_to_2.3.50_repo() {
if [[ "$OS" == "centos" ]]; then
# Import GPG Keys
gpg_rpm_import
if [ $is_airgap -eq 1 ]; then
echo "Disabling fastestmirror."
disable_fastestmirror
echo "Deleting unneeded repo files."
@@ -465,7 +464,7 @@ up_2.3.3X_to_2.3.50_repo() {
rm -f "/etc/yum.repos.d/$DELREPO.repo"
fi
done
if [ $is_airgap -eq 1 ]; then
# Copy the new repo file if not airgap
cp $UPDATE_DIR/salt/repo/client/files/centos/securityonion.repo /etc/yum.repos.d/
yum clean all

View File

@@ -16,7 +16,7 @@ airgap_repo:
pkgrepo.managed:
- humanname: Airgap Repo
- baseurl: https://{{ MANAGER }}/repo
- gpgcheck: 0
- gpgcheck: 1
- sslverify: 0
{% endif %}