Merge pull request #11674 from Security-Onion-Solutions/foxtrot

Foxtrot
This commit is contained in:
Josh Patterson
2023-11-01 15:03:30 -04:00
committed by GitHub

View File

@@ -579,7 +579,7 @@ update_airgap_rules() {
rsync -av $UPDATE_DIR/agrules/* /nsm/repo/rules/
}
update_centos_repo() {
update_airgap_repo() {
# Update the files in the repo
echo "Syncing new updates to /nsm/repo"
rsync -av $AGREPO/* /nsm/repo/
@@ -821,6 +821,7 @@ main() {
set -e
if [[ $is_airgap -eq 0 ]]; then
update_airgap_repo
yum clean all
check_os_updates
elif [[ $OS == 'oracle' ]]; then
@@ -895,11 +896,6 @@ main() {
update_airgap_rules
fi
# Only update the repo if its airgap
if [[ $is_airgap -eq 0 && $UPGRADESALT -ne 1 ]]; then
update_centos_repo
fi
# since we don't run the backup.config_backup state on import we wont snapshot previous version states and pillars
if [[ ! "$MINIONID" =~ "_import" ]]; then
echo ""