Fix acng to actually cache

This commit is contained in:
Mike Reeves
2021-03-26 16:10:00 -04:00
parent 8819cc1371
commit 26f8ae87c5

View File

@@ -47,6 +47,7 @@ source ./so-variables
# Parse command line arguments # Parse command line arguments
setup_type=$1 setup_type=$1
automation=$2 automation=$2
WHATWOULDYOUSAYYAHDOHERE=setup
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
arg="$1" arg="$1"
@@ -622,8 +623,6 @@ set_redirect >> $setup_log 2>&1
info "Creating airgap repo" info "Creating airgap repo"
create_repo >> $setup_log 2>&1 create_repo >> $setup_log 2>&1
airgap_rules >> $setup_log 2>&1 airgap_rules >> $setup_log 2>&1
else
securityonion_repo >> $setup_log 2>&1
fi fi
if [[ $is_minion ]]; then if [[ $is_minion ]]; then
@@ -632,7 +631,11 @@ set_redirect >> $setup_log 2>&1
fi fi
set_progress_str 2 'Updating packages' set_progress_str 2 'Updating packages'
# Import the gpg keys
gpg_rpm_import
if [[ ! $is_airgap ]] if [[ ! $is_airgap ]]
securityonion_repo >> $setup_log 2>&1
gpg_rpm_import >> $setup_log 2>&1
update_packages >> $setup_log 2>&1 update_packages >> $setup_log 2>&1
fi fi