Set standalone to load Xwindows

This commit is contained in:
Mike Reeves
2022-03-29 17:08:03 -04:00
parent 3ace55dfe5
commit afb918d79c
2 changed files with 9 additions and 3 deletions

View File

@@ -97,7 +97,13 @@ if [[ $is_analyst ]]; then
whiptail_analyst_install
if [[ $AWORK != "Join" ]]; then
# Lets make this a standalone
echo "Enabling X Windows and setting it to load at boot"
systemctl set-default graphical.target
startx
exit 0
fi
# If you got this far then you want to join the grid
is_minion=true

View File

@@ -44,9 +44,9 @@ whiptail_analyst_install() {
You can choose to join this workstation to an existing grid for managemnt or make it standalone.
EOM
whiptail --title "$whiptail_title" \
AWORK=$(whiptail --title "$whiptail_title" \
--yesno "$message" 11 75 \
--yes-button "Join" --no-button "Standalone" --defaultno
--yes-button "Join" --no-button "Standalone" --defaultno)
}