mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Repo Fix
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -16,7 +16,7 @@ airgap_repo:
|
||||
pkgrepo.managed:
|
||||
- humanname: Airgap Repo
|
||||
- baseurl: https://{{ MANAGER }}/repo
|
||||
- gpgcheck: 0
|
||||
- gpgcheck: 1
|
||||
- sslverify: 0
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user