Merge pull request #7731 from Security-Onion-Solutions/m0duspwnens-salt-3004.1

update the centos repo for airgap prior to applying hotfix
This commit is contained in:
Josh Patterson
2022-04-06 17:00:09 -04:00
committed by GitHub

View File

@@ -1094,6 +1094,12 @@ main() {
upgrade_check_salt upgrade_check_salt
set -e set -e
if [[ $is_airgap -eq 0 ]]; then
update_centos_repo
yum clean all
check_os_updates
fi
if [ "$is_hotfix" == "true" ]; then if [ "$is_hotfix" == "true" ]; then
echo "Applying $HOTFIXVERSION hotfix" echo "Applying $HOTFIXVERSION hotfix"
copy_new_files copy_new_files
@@ -1115,9 +1121,6 @@ main() {
echo "Updating dockers to $NEWVERSION." echo "Updating dockers to $NEWVERSION."
if [[ $is_airgap -eq 0 ]]; then if [[ $is_airgap -eq 0 ]]; then
airgap_update_dockers airgap_update_dockers
update_centos_repo
yum clean all
check_os_updates
# if not airgap but -f was used # if not airgap but -f was used
elif [[ ! -z "$ISOLOC" ]]; then elif [[ ! -z "$ISOLOC" ]]; then
airgap_update_dockers airgap_update_dockers