[refactor] Kill parent script on exit

This commit is contained in:
William Wernert
2020-12-07 14:16:54 -05:00
parent 6fc3232637
commit 08ab36927d

View File

@@ -1752,7 +1752,7 @@ set_main_ip() {
This is not a supported configuration, please remediate and rerun setup. This is not a supported configuration, please remediate and rerun setup.
EOM EOM
whiptail --title "Security Onion Setup" --msgbox "$message" 10 75 whiptail --title "Security Onion Setup" --msgbox "$message" 10 75
exit 1 kill -SIGKILL "$(ps --pid $$ -oppid=)"; exit 1
fi fi
} }