mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-13 12:42:56 +01:00
[refactor] Move install_cleanup outside of whiptail functions
This commit is contained in:
@@ -633,3 +633,6 @@ fi
|
|||||||
if [[ -z $SKIP_REBOOT ]]; then
|
if [[ -z $SKIP_REBOOT ]]; then
|
||||||
shutdown -r now
|
shutdown -r now
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
install_cleanup >> $setup_log 2>&1
|
||||||
|
|
||||||
|
|||||||
@@ -1036,17 +1036,13 @@ whiptail_setup_complete() {
|
|||||||
[ -n "$TESTING" ] && return
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
whiptail --title "Security Onion Setup" --msgbox "Finished $install_type install. Press Ok to reboot." 8 75
|
whiptail --title "Security Onion Setup" --msgbox "Finished $install_type install. Press Ok to reboot." 8 75
|
||||||
install_cleanup >> $setup_log 2>&1
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
whiptail_setup_failed() {
|
whiptail_setup_failed() {
|
||||||
|
|
||||||
[ -n "$TESTING" ] && return
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
whiptail --title "Security Onion Setup" --msgbox "Install had a problem. Please see $setup_log for details. Press Ok to reboot." 8 75
|
whiptail --title "Security Onion Setup" --msgbox "Install had a problem. Please see $setup_log for details. Press Ok to exit." 8 75
|
||||||
install_cleanup >> $setup_log 2>&1
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
whiptail_shard_count() {
|
whiptail_shard_count() {
|
||||||
|
|||||||
Reference in New Issue
Block a user