[feat] Add timeout for salt services to stop during reinstall init

This commit is contained in:
William Wernert
2020-12-01 21:18:24 -05:00
parent c2e7e42509
commit 38028a543a
2 changed files with 37 additions and 1 deletions
+13
View File
@@ -1175,6 +1175,19 @@ 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