mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
[fix] Set SKIP_REBOOT on any failure during setup
This commit is contained in:
@@ -58,7 +58,6 @@ function progress() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
export SO_ERROR=1
|
export SO_ERROR=1
|
||||||
export SKIP_REBOOT=1
|
|
||||||
title="Error found, please check $setup_log"
|
title="Error found, please check $setup_log"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -610,7 +609,7 @@ fi
|
|||||||
checkin_at_boot >> $setup_log 2>&1
|
checkin_at_boot >> $setup_log 2>&1
|
||||||
|
|
||||||
set_progress_str 95 'Verifying setup'
|
set_progress_str 95 'Verifying setup'
|
||||||
salt-call -l info state.highstate >> $setup_log 2>&1
|
salt-call -l info state.highstate >> $setup_log 2>&1
|
||||||
|
|
||||||
} | progress
|
} | progress
|
||||||
|
|
||||||
@@ -620,7 +619,9 @@ if [[ -n $ALLOW_ROLE && -n $ALLOW_CIDR ]]; then
|
|||||||
IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1
|
IP=$ALLOW_CIDR so-allow -$ALLOW_ROLE >> $setup_log 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $success != 0 || $SO_ERROR == 1 ]]; then whiptail_setup_failed
|
if [[ $success != 0 || $SO_ERROR == 1 ]]; then
|
||||||
|
SKIP_REBOOT=1
|
||||||
|
whiptail_setup_failed
|
||||||
else
|
else
|
||||||
whiptail_setup_complete
|
whiptail_setup_complete
|
||||||
if [[ $THEHIVE == 1 ]]; then check_hive_init; fi
|
if [[ $THEHIVE == 1 ]]; then check_hive_init; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user