mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
refactor so-verify to ensure output streams to console
This commit is contained in:
@@ -2383,9 +2383,10 @@ wait_for_salt_minion() {
|
|||||||
|
|
||||||
verify_setup() {
|
verify_setup() {
|
||||||
info "Verifying setup"
|
info "Verifying setup"
|
||||||
output=$(./so-verify "$setup_type" 2>&1)
|
set -o pipefail
|
||||||
|
./so-verify "$setup_type" 2>&1 | tee -a $setup_log
|
||||||
result=$?
|
result=$?
|
||||||
echo "$output" >> "$setup_log"
|
set +o pipefail
|
||||||
if [[ $result -eq 0 ]]; then
|
if [[ $result -eq 0 ]]; then
|
||||||
whiptail_setup_complete
|
whiptail_setup_complete
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user