mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Add more whiptail menus
This commit is contained in:
@@ -147,7 +147,6 @@ analyst_salt_local() {
|
|||||||
# Install salt
|
# Install salt
|
||||||
logCmd "yum -y install salt-minion-3004.1 httpd-tools python3 python36-docker python36-dateutil python36-m2crypto python36-mysql python36-packaging python36-lxml yum-utils device-mapper-persistent-data lvm2 openssl jq"
|
logCmd "yum -y install salt-minion-3004.1 httpd-tools python3 python36-docker python36-dateutil python36-m2crypto python36-mysql python36-packaging python36-lxml yum-utils device-mapper-persistent-data lvm2 openssl jq"
|
||||||
logCmd "yum -y update --exclude=salt*"
|
logCmd "yum -y update --exclude=salt*"
|
||||||
logCmd "systemctl enable salt-minion"
|
|
||||||
|
|
||||||
salt-call state.apply workstation --local --file-root=../salt/ -l info 2>&1 | tee -a outfile
|
salt-call state.apply workstation --local --file-root=../salt/ -l info 2>&1 | tee -a outfile
|
||||||
echo "Whiptail to reboot here"
|
echo "Whiptail to reboot here"
|
||||||
|
|||||||
@@ -101,13 +101,22 @@ if [[ $is_analyst ]]; then
|
|||||||
|
|
||||||
if ! whiptail_analyst_install; then
|
if ! whiptail_analyst_install; then
|
||||||
if [[ $is_analyst_iso ]]; then
|
if [[ $is_analyst_iso ]]; then
|
||||||
# Lets make this a standalone
|
if whiptail_analyst_nongrid_iso; then
|
||||||
echo "Enabling graphical interface and setting it to load at boot"
|
echo "Enabling graphical interface and setting it to load at boot"
|
||||||
systemctl set-default graphical.target
|
systemctl set-default graphical.target
|
||||||
startx
|
startx
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
|
# Abort!
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if whiptail_analyst_nongrid_network; then
|
||||||
analyst_salt_local
|
analyst_salt_local
|
||||||
|
else
|
||||||
|
# Abort!
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,42 @@ whiptail_analyst_install() {
|
|||||||
|
|
||||||
Would you like to join this workstation to an existing grid?
|
Would you like to join this workstation to an existing grid?
|
||||||
|
|
||||||
NOTE: Selecting "no" will enable X Windows and set it to load at boot.
|
EOM
|
||||||
|
whiptail --title "$whiptail_title" \
|
||||||
|
--yesno "$message" 11 75 --defaultno
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
whiptail_analyst_nongrid_iso() {
|
||||||
|
|
||||||
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
|
read -r -d '' message <<- EOM
|
||||||
|
|
||||||
|
You have selected this Analyst workstation to be independant.
|
||||||
|
|
||||||
|
Would you still like to have the graphical interface loaded at boot?
|
||||||
|
|
||||||
|
NOTE: Selecting no will exit without making changes.
|
||||||
|
|
||||||
|
EOM
|
||||||
|
whiptail --title "$whiptail_title" \
|
||||||
|
--yesno "$message" 11 75 --defaultno
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
whiptail_analyst_nongrid_network() {
|
||||||
|
|
||||||
|
[ -n "$TESTING" ] && return
|
||||||
|
|
||||||
|
read -r -d '' message <<- EOM
|
||||||
|
|
||||||
|
You have selected this Analyst workstation to be independant.
|
||||||
|
|
||||||
|
Would you still like to install and load the graphical interface?
|
||||||
|
|
||||||
|
NOTE: Selecting no will exit without making changes.
|
||||||
|
|
||||||
EOM
|
EOM
|
||||||
whiptail --title "$whiptail_title" \
|
whiptail --title "$whiptail_title" \
|
||||||
--yesno "$message" 11 75 --defaultno
|
--yesno "$message" 11 75 --defaultno
|
||||||
|
|||||||
Reference in New Issue
Block a user