mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
fix repo update during soup for airgap
This commit is contained in:
@@ -579,7 +579,7 @@ update_airgap_rules() {
|
|||||||
rsync -av $UPDATE_DIR/agrules/* /nsm/repo/rules/
|
rsync -av $UPDATE_DIR/agrules/* /nsm/repo/rules/
|
||||||
}
|
}
|
||||||
|
|
||||||
update_centos_repo() {
|
update_airgap_repo() {
|
||||||
# Update the files in the repo
|
# Update the files in the repo
|
||||||
echo "Syncing new updates to /nsm/repo"
|
echo "Syncing new updates to /nsm/repo"
|
||||||
rsync -av $AGREPO/* /nsm/repo/
|
rsync -av $AGREPO/* /nsm/repo/
|
||||||
@@ -821,6 +821,7 @@ main() {
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [[ $is_airgap -eq 0 ]]; then
|
if [[ $is_airgap -eq 0 ]]; then
|
||||||
|
update_airgap_repo
|
||||||
yum clean all
|
yum clean all
|
||||||
check_os_updates
|
check_os_updates
|
||||||
elif [[ $OS == 'oracle' ]]; then
|
elif [[ $OS == 'oracle' ]]; then
|
||||||
@@ -895,11 +896,6 @@ main() {
|
|||||||
update_airgap_rules
|
update_airgap_rules
|
||||||
fi
|
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
|
# since we don't run the backup.config_backup state on import we wont snapshot previous version states and pillars
|
||||||
if [[ ! "$MINIONID" =~ "_import" ]]; then
|
if [[ ! "$MINIONID" =~ "_import" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user