mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
analytics
This commit is contained in:
@@ -1258,6 +1258,10 @@ soc_pillar() {
|
||||
" server:"\
|
||||
" srvKey: '$SOCSRVKEY'"\
|
||||
"" > "$soc_pillar_file"
|
||||
|
||||
if [[ $telemetry -ne 0 ]]; then
|
||||
echo " telemetryEnabled: false" >> $soc_pillar_file
|
||||
fi
|
||||
}
|
||||
|
||||
telegraf_pillar() {
|
||||
|
||||
@@ -447,6 +447,7 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
get_redirect
|
||||
# Does the user want to allow access to the UI?
|
||||
collect_so_allow
|
||||
whiptail_accept_telemetry
|
||||
whiptail_end_settings
|
||||
elif [[ $is_standalone ]]; then
|
||||
waitforstate=true
|
||||
@@ -468,6 +469,7 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
collect_webuser_inputs
|
||||
get_redirect
|
||||
collect_so_allow
|
||||
whiptail_accept_telemetry
|
||||
whiptail_end_settings
|
||||
elif [[ $is_manager ]]; then
|
||||
info "Setting up as node type manager"
|
||||
@@ -488,6 +490,7 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
collect_webuser_inputs
|
||||
get_redirect
|
||||
collect_so_allow
|
||||
whiptail_accept_telemetry
|
||||
whiptail_end_settings
|
||||
elif [[ $is_managersearch ]]; then
|
||||
info "Setting up as node type managersearch"
|
||||
@@ -508,6 +511,7 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
collect_webuser_inputs
|
||||
get_redirect
|
||||
collect_so_allow
|
||||
whiptail_accept_telemetry
|
||||
whiptail_end_settings
|
||||
elif [[ $is_sensor ]]; then
|
||||
info "Setting up as node type sensor"
|
||||
@@ -597,6 +601,7 @@ if ! [[ -f $install_opt_file ]]; then
|
||||
collect_webuser_inputs
|
||||
get_redirect
|
||||
collect_so_allow
|
||||
whiptail_accept_telemetry
|
||||
whiptail_end_settings
|
||||
|
||||
elif [[ $is_receiver ]]; then
|
||||
|
||||
@@ -144,6 +144,26 @@ whiptail_cancel() {
|
||||
exit 1
|
||||
}
|
||||
|
||||
whiptail_accept_telemetry() {
|
||||
|
||||
[ -n "$TESTING" ] && return
|
||||
|
||||
read -r -d '' message <<- EOM
|
||||
|
||||
The Security Onion development team could use your help! Enabling SOC
|
||||
Telemetry will help the team understand which UI features are being
|
||||
used and enables informed prioritization of future development.
|
||||
|
||||
Adjust this setting at anytime via the SOC Configuration screen.
|
||||
|
||||
For more information visit https://docs.securityonion.net/telemetry.rst.
|
||||
|
||||
Enable SOC Telemetry to help improve future releases?
|
||||
EOM
|
||||
whiptail --title "$whiptail_title" --yesno "$message" 13 75
|
||||
telemetry=$?
|
||||
}
|
||||
|
||||
whiptail_check_exitstatus() {
|
||||
case $1 in
|
||||
1)
|
||||
|
||||
Reference in New Issue
Block a user