mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Setup - Make sure install completes properly
This commit is contained in:
@@ -1492,6 +1492,14 @@ whiptail_setup_complete() {
|
||||
|
||||
}
|
||||
|
||||
whiptail_setup_failed() {
|
||||
|
||||
whiptail --title "Security Onion Setup" --msgbox "Install had a problem. Please see /root/sosetup.log for details" 8 78
|
||||
install_cleanup
|
||||
exit
|
||||
|
||||
}
|
||||
|
||||
whiptail_shard_count() {
|
||||
|
||||
SHARDCOUNT=$(whiptail --title "Security Onion Setup" --inputbox \
|
||||
@@ -1881,7 +1889,19 @@ if (whiptail_you_sure); then
|
||||
salt-call state.highstate >>~/sosetup.log 2>&1
|
||||
|
||||
} |whiptail --title "Hybrid Hunter Install" --gauge "Please wait while installing" 6 60 0
|
||||
GOODSETUP=$(tail -10 sosetup.log | grep Failed | awk '{ print $2}')
|
||||
if [ $OS == 'centos' ]; then
|
||||
if [ $GOODSETUP == 1 ]; then
|
||||
whiptail_setup_complete
|
||||
else
|
||||
whiptail_setup_failed
|
||||
fi
|
||||
else
|
||||
if [ $GOODSETUP == 0 ]; then
|
||||
whiptail_setup_complete
|
||||
else
|
||||
whiptail_setup_failed
|
||||
fi
|
||||
fi
|
||||
|
||||
###################
|
||||
|
||||
Reference in New Issue
Block a user