don't sync the repo 2x

This commit is contained in:
Mike Reeves
2023-04-25 15:33:08 -04:00
parent 969cf25818
commit 4b73f859d1

View File

@@ -2001,8 +2001,6 @@ repo_sync_local() {
# TODO Add if for ISO install
curl --retry 5 --retry-delay 60 -A "netinstall/$SOVERSION/$OS/$(uname -r)/1" https://sigs.securityonion.net/checkup --output /tmp/install
logCmd "dnf reposync --norepopath -g --delete -m -c /opt/so/conf/reposync/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"
# Run it again and make sure we got allt he things
logCmd "dnf reposync --norepopath -g --delete -m -c /opt/so/conf/reposync/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/"
# After the download is complete run createrepo
create_repo