mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
When running in automated mode, cat all piped in input to setup log
This commit is contained in:
@@ -633,11 +633,6 @@ if [[ -n $SO_ERROR ]]; then
|
|||||||
whiptail_setup_failed
|
whiptail_setup_failed
|
||||||
else
|
else
|
||||||
echo "Successfully completed setup! Continuing with post-installation steps" >> $setup_log 2>&1
|
echo "Successfully completed setup! Continuing with post-installation steps" >> $setup_log 2>&1
|
||||||
echo "automated=$automated" >> $setup_log 2>&1
|
|
||||||
echo "ALLOW_ROLE=$ALLOW_ROLE" >> $setup_log 2>&1
|
|
||||||
echo "ALLOW_CIDR=$ALLOW_CIDR" >> $setup_log 2>&1
|
|
||||||
echo "THEHIVE=$THEHIVE" >> $setup_log 2>&1
|
|
||||||
|
|
||||||
{
|
{
|
||||||
export percentage=95 # set to last percentage used in previous subshell
|
export percentage=95 # set to last percentage used in previous subshell
|
||||||
if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then
|
if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then
|
||||||
|
|||||||
@@ -1098,11 +1098,13 @@ whiptail_so_allow() {
|
|||||||
|
|
||||||
whiptail_gauge_post_setup() {
|
whiptail_gauge_post_setup() {
|
||||||
|
|
||||||
[ -n "$TESTING" ] && return
|
if [ -n "$TESTING" ]
|
||||||
|
cat >> $setup_log 2>&1
|
||||||
local msg=$1
|
else
|
||||||
|
local msg=$1
|
||||||
|
|
||||||
whiptail --title "Security Onion Setup" --gauge "$msg" 6 60 96
|
whiptail --title "Security Onion Setup" --gauge "$msg" 6 60 96
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
whiptail_strelka_rules() {
|
whiptail_strelka_rules() {
|
||||||
|
|||||||
Reference in New Issue
Block a user