Skip to content

Commit

Permalink
Merge pull request #11190 from Security-Onion-Solutions/failreposync
Browse files Browse the repository at this point in the history
Failreposync
  • Loading branch information
m0duspwnens authored Aug 28, 2023
2 parents 2616a2b + 6b0fbe4 commit 4f8a0c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion salt/common/soup_scripts.sls
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ soup_manager_scripts:
- source: salt://manager/tools/sbin
- include_pat:
- so-firewall
- soup
- so-repo-sync
- soup
4 changes: 3 additions & 1 deletion salt/manager/tools/sbin/so-repo-sync
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ set_version
set_os
salt_minion_count

set -e

curl --retry 5 --retry-delay 60 -A "reposync/$VERSION/$OS/$(uname -r)/$MINIONCOUNT" https://sigs.securityonion.net/checkup --output /tmp/checkup
dnf reposync --norepopath -g --delete -m -c /opt/so/conf/reposync/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/
createrepo /nsm/repo
createrepo /nsm/repo
2 changes: 1 addition & 1 deletion salt/manager/tools/sbin/soup
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ post_to_2.4.20() {

repo_sync() {
echo "Sync the local repo."
su socore -c '/usr/sbin/so-repo-sync'
su socore -c '/usr/sbin/so-repo-sync' || fail "Unable to complete so-repo-sync."
}

stop_salt_master() {
Expand Down

0 comments on commit 4f8a0c4

Please sign in to comment.