[refactor] Add trap to handle script exits, change what files are deleted in /etc/salt/

This commit is contained in:
William Wernert
2020-12-02 13:19:34 -05:00
parent 2d4fe58299
commit 467f9923b0
3 changed files with 44 additions and 61 deletions
-13
View File
@@ -1175,19 +1175,6 @@ whiptail_sensor_config() {
}
whiptail_service_stop_failed() {
local service=$1
read -r -d '' message <<- EOM
The ${service} service could not be stopped. Please stop it manually and then re-run setup.
Press ENTER to exit the installer.
EOM
whiptail --title "Security Onion Setup" --msgbox "$message" 10 75
exit 1
}
whiptail_set_hostname() {
[ -n "$TESTING" ] && return