mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-09 10:42:54 +01:00
20 lines
769 B
Bash
20 lines
769 B
Bash
#!/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
|
|
|
|
# See if a proxy is set. If so use it.
|
|
if [ -f /etc/profile.d/so-proxy.sh ]; then
|
|
. /etc/profile.d/so-proxy.sh
|
|
fi
|
|
|
|
set -e
|
|
|
|
curl --retry 5 --retry-delay 60 -A "reposync/$(sync_options)" 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
|