Merge pull request #3088 from Security-Onion-Solutions/soupairgap

Syn the latest rules on an airgap install
This commit is contained in:
Mike Reeves
2021-02-23 17:31:29 -05:00
committed by GitHub

View File

@@ -382,6 +382,10 @@ unmount_update() {
umount /tmp/soagupdate
}
update_airgap_rules() {
# Copy the rules over to update them for airgap.
rsync -av $UPDATE_DIR/agrules/* /nsm/repo/rules/
}
update_centos_repo() {
# Update the files in the repo
@@ -591,6 +595,11 @@ echo "Making pillar changes."
pillar_changes
echo ""
if [ $is_airgap -eq 0 ]; then
echo "Updating Rule Files to the Latest."
update_airgap_rules
fi
# Only update the repo if its airgap
if [[ $is_airgap -eq 0 ]] && [[ "$UPGRADESALT" != "1" ]]; then
update_centos_repo