Skip to content

Commit

Permalink
Merge pull request #13430 from Security-Onion-Solutions/jertel/retryr…
Browse files Browse the repository at this point in the history
…eposync

retry up to 5 times if reposync fails
  • Loading branch information
jertel authored Aug 2, 2024
2 parents e76293a + c36e8ab commit 56ef2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup/so-functions
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,7 @@ repo_sync_local() {

if [[ ! $is_airgap ]]; then
curl --retry 5 --retry-delay 60 -A "netinstall/$SOVERSION/$OS/$(uname -r)/1" https://sigs.securityonion.net/checkup --output /tmp/install
retry 5 60 "dnf reposync --norepopath -g --delete -m -c /opt/so/conf/reposync/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/" || fail_setup
retry 5 60 "dnf reposync --norepopath -g --delete -m -c /opt/so/conf/reposync/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/" >> "$setup_log" 2>&1 || fail_setup
# After the download is complete run createrepo
create_repo
fi
Expand Down

0 comments on commit 56ef2a4

Please sign in to comment.