set palette after detecting os and before whiptail

This commit is contained in:
m0duspwnens
2023-07-17 13:51:14 -04:00
parent 38c7ea0801
commit fe5ca3a0c8

View File

@@ -64,6 +64,10 @@ done
# Let's see what OS we are dealing with here
detect_os
# Ubuntu/Debian whiptail pallete to make it look the same as CentOS and Rocky.
set_palette >> $setup_log 2>&1
if [[ $not_supported ]]; then
if (whiptail_unsupported_os_warning); then
true
@@ -255,9 +259,6 @@ local_sbin="$(pwd)/../salt/common/tools/sbin"
manager_sbin="$(pwd)/../salt/manager/tools/sbin"
export PATH=$PATH:$local_sbin:$manager_sbin
# Ubuntu/Debian whiptail pallete to make it look the same as CentOS and Rocky.
set_palette >> $setup_log 2>&1
# Kernel messages can overwrite whiptail screen #812
# https://github.com/Security-Onion-Solutions/securityonion/issues/812
dmesg -D