mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +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
|
if [[ "$OS" == "centos" ]]; then
|
||||||
# Import GPG Keys
|
# Import GPG Keys
|
||||||
gpg_rpm_import
|
gpg_rpm_import
|
||||||
if [ $is_airgap -eq 1 ]; then
|
|
||||||
echo "Disabling fastestmirror."
|
echo "Disabling fastestmirror."
|
||||||
disable_fastestmirror
|
disable_fastestmirror
|
||||||
echo "Deleting unneeded repo files."
|
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"
|
rm -f "/etc/yum.repos.d/$DELREPO.repo"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ $is_airgap -eq 1 ]; then
|
||||||
# Copy the new repo file if not airgap
|
# Copy the new repo file if not airgap
|
||||||
cp $UPDATE_DIR/salt/repo/client/files/centos/securityonion.repo /etc/yum.repos.d/
|
cp $UPDATE_DIR/salt/repo/client/files/centos/securityonion.repo /etc/yum.repos.d/
|
||||||
yum clean all
|
yum clean all
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ airgap_repo:
|
|||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
- humanname: Airgap Repo
|
- humanname: Airgap Repo
|
||||||
- baseurl: https://{{ MANAGER }}/repo
|
- baseurl: https://{{ MANAGER }}/repo
|
||||||
- gpgcheck: 0
|
- gpgcheck: 1
|
||||||
- sslverify: 0
|
- sslverify: 0
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user