Set standalone to load Xwindows

This commit is contained in:
Mike Reeves
2022-03-29 17:23:38 -04:00
parent 86e32f3e6c
commit 67582be575
2 changed files with 6 additions and 8 deletions

View File

@@ -95,10 +95,7 @@ if [[ $is_analyst ]]; then
exit 1
fi
whiptail_analyst_install
echo "$AWORK"
if [[ $AWORK != "Join" ]]; then
if ! whiptail_analyst_install; then
# Lets make this a standalone
echo "Enabling X Windows and setting it to load at boot"
systemctl set-default graphical.target

View File

@@ -41,12 +41,13 @@ whiptail_analyst_install() {
Welcome to the Security Onion Analyst Workstation install!
You can choose to join this workstation to an existing grid for managemnt or make it standalone.
You can choose to join this workstation to an existing grid?
NOTE: Selecting "no" will enable X Windows and set it to load at boot.
EOM
echo "whiptail"
AWORK=$(whiptail --title "$whiptail_title" \
--yesno "$message" 11 75 \
--yes-button "Join" --no-button "Standalone" --defaultno 3>&1 1>&2 2>&3 )
whiptail --title "$whiptail_title" \
--yesno "$message" 11 75 --defaultno
}