Saltify it up

This commit is contained in:
Mike Reeves
2023-03-23 10:52:05 -04:00
parent f8d5acd37d
commit 02aa8662f7
2 changed files with 8 additions and 5 deletions

View File

@@ -1,21 +0,0 @@
#!/bin/bash
#
# Copyright Security Onion Solutions LLC and/or licensed to Security Onion Solutions LLC under one
# or more contributor license agreements. Licensed under the Elastic License 2.0 as shown at
# https://securityonion.net/license; you may not use this file except in compliance with the
# Elastic License 2.0.
NOROOT=1
. /usr/sbin/so-common
if [ ! -f /root/repodownload.conf ]; then
echo "This script should only run on the manager."
exit 1
fi
set_version
set_os
salt_minion_count
curl --retry 5 --retry-delay 60 -A 'checkin/$VERSION/$OS/$(uname -r)/$MINIONCOUNT' https://sigs.securityonion.net/checkup --output /tmp/checkup
dnf reposync --norepopath -g --delete -m -c /root/repodownload.conf --repoid=securityonionsync --download-metadata -p /nsm/repo/
createrepo /nsm/repo