[refactor] Set enabled components in whiptail function

This commit is contained in:
William Wernert
2020-04-18 18:26:27 -04:00
parent 6ca5827ce6
commit 043f2df7e3
3 changed files with 20 additions and 19 deletions

View File

@@ -983,22 +983,6 @@ patch_schedule_os_new() {
}
process_components() {
CLEAN=${COMPONENTS//\"}
GRAFANA=0
OSQUERY=0
WAZUH=0
THEHIVE=0
PLAYBOOK=0
STRELKA=0
IFS=$' '
for item in $(echo "$CLEAN"); do
let $item=1
done
unset IFS
}
reserve_group_ids() {
# This is a hack to fix CentOS from taking group IDs that we need