Merge pull request #6402 from Security-Onion-Solutions/fix/airgap-check

Fix/airgap check
This commit is contained in:
William Wernert authored and GitHub committed 2021-11-30 15:57:02 -05:00
commit 1a31e60e47
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
WAZUH
WAZUH AIRGAPFIX
+4
View File
@@ -65,6 +65,10 @@ yumconf:
- mode: 644
- template: jinja
- show_changes: False
cleanairgap:
file.absent:
- name: /etc/yum.repos.d/airgap_repo.repo
{% endif %}
cleanyum:
+1 -1
View File
@@ -318,7 +318,7 @@ if ! [[ -f $install_opt_file ]]; then
elif [[ $is_minion && $is_iso ]]; then
$sshcmd -i /root/.ssh/so.key soremote@"$MSRV" [[ -f /etc/yum.repos.d/airgap_repo.repo ]] >> $setup_log 2>&1
airgap_check=$?
[[ $airgap_check ]] && is_airgap=true >> $setup_log 2>&1
[[ $airgap_check == 0 ]] && is_airgap=true >> $setup_log 2>&1
fi
reset_proxy