mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-07-23 09:15:41 +02:00
duplicate repo name in so-repo-sync
This commit is contained in:
@@ -11,8 +11,8 @@ name=Security Onion Repo repo
|
|||||||
mirrorlist=file:///opt/so/conf/reposync/mirror.txt
|
mirrorlist=file:///opt/so/conf/reposync/mirror.txt
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
[securityonionkernel]
|
[securityonionkernelsync]
|
||||||
name=Security Onion Repo repo
|
name=Security Onion Kernel Repo repo
|
||||||
mirrorlist=file:///opt/so/conf/reposync/mirror-kernel.txt
|
mirrorlist=file:///opt/so/conf/reposync/mirror-kernel.txt
|
||||||
enabled=1
|
enabled=1
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ createrepo /nsm/repo
|
|||||||
# The kernel repo section is deployed to repodownload.conf by the manager highstate, which
|
# The kernel repo section is deployed to repodownload.conf by the manager highstate, which
|
||||||
# runs AFTER this script during soup. On the first upgrade to a kernel-aware version the
|
# runs AFTER this script during soup. On the first upgrade to a kernel-aware version the
|
||||||
# on-disk config still predates the section, so guard on its presence to avoid dnf's
|
# on-disk config still predates the section, so guard on its presence to avoid dnf's
|
||||||
# "Unknown repo: 'securityonionkernel'" aborting the sync (set -e). The next sync after the
|
# "Unknown repo: 'securityonionkernelsync'" aborting the sync (set -e). The next sync after the
|
||||||
# highstate deploys the section will pick it up.
|
# highstate deploys the section will pick it up.
|
||||||
if grep -q '^\[securityonionkernel\]' /opt/so/conf/reposync/repodownload.conf; then
|
if grep -q '^\[securityonionkernelsync\]' /opt/so/conf/reposync/repodownload.conf; then
|
||||||
dnf reposync --norepopath -g --delete -m -c /opt/so/conf/reposync/repodownload.conf --repoid=securityonionkernel --download-metadata -p /nsm/kernelrepo/
|
dnf reposync --norepopath -g --delete -m -c /opt/so/conf/reposync/repodownload.conf --repoid=securityonionkernelsync --download-metadata -p /nsm/kernelrepo/
|
||||||
createrepo /nsm/kernelrepo
|
createrepo /nsm/kernelrepo
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user