mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-23 17:33:10 +01:00
[feat] Add prompt about master needing internet access
When package updates go through the master node, that master needs internet access. Therefore, prompt the user about this requirement. Resolves #146
This commit is contained in:
@@ -231,6 +231,9 @@ fi
|
||||
|
||||
if [[ $is_distmaster || ( $is_sensor || $is_node ) && ! $is_eval ]]; then
|
||||
whiptail_master_updates
|
||||
if [[ $setup_type == 'network' && $MASTERUPDATES == 1 ]]; then
|
||||
whiptail_master_updates_warning
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $is_minion ]]; then
|
||||
|
||||
@@ -1027,7 +1027,17 @@ whiptail_master_updates() {
|
||||
;;
|
||||
esac
|
||||
|
||||
}
|
||||
|
||||
whiptail_master_updates_warning() {
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
whiptail --title "Security Onion Setup"\
|
||||
--msgbox "Updating through the master node requires the master to have internet access, press ENTER to continue"\
|
||||
8 75
|
||||
|
||||
local exitstatus=$?
|
||||
whiptail_check_exitstatus $exitstatus
|
||||
}
|
||||
|
||||
whiptail_node_updates() {
|
||||
|
||||
Reference in New Issue
Block a user