mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Remove keys at the end of an install
This commit is contained in:
@@ -149,7 +149,14 @@ analyst_salt_local() {
|
|||||||
logCmd "yum -y update --exclude=salt*"
|
logCmd "yum -y update --exclude=salt*"
|
||||||
|
|
||||||
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"
|
read -r -d '' message <<- EOM
|
||||||
|
Finished Analyst workstation installation.
|
||||||
|
|
||||||
|
Press ENTER to reboot.
|
||||||
|
EOM
|
||||||
|
|
||||||
|
whiptail --title "$whiptail_title" --msgbox "$message" 12 75
|
||||||
|
reboot
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1082,6 +1082,11 @@ echo "1" > /root/accept_changes
|
|||||||
set_progress_str 87 'Adding user to SOC'
|
set_progress_str 87 'Adding user to SOC'
|
||||||
add_web_user >> $setup_log 2>&1
|
add_web_user >> $setup_log 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $is_analyst ]]; then
|
||||||
|
# Remove access to the manager from the analyst workstation
|
||||||
|
rm -rf /root/.ssh/so.key*
|
||||||
|
fi
|
||||||
|
|
||||||
set_progress_str 90 'Enabling checkin at boot'
|
set_progress_str 90 'Enabling checkin at boot'
|
||||||
checkin_at_boot >> $setup_log 2>&1
|
checkin_at_boot >> $setup_log 2>&1
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ whiptail_analyst_nongrid_iso() {
|
|||||||
|
|
||||||
read -r -d '' message <<- EOM
|
read -r -d '' message <<- EOM
|
||||||
|
|
||||||
You have selected this Analyst workstation to be independant.
|
You have selected this Analyst workstation to be independent.
|
||||||
|
|
||||||
Would you still like to have the graphical interface loaded at boot?
|
Would you still like to have the graphical interface loaded at boot?
|
||||||
|
|
||||||
@@ -73,7 +73,7 @@ whiptail_analyst_nongrid_network() {
|
|||||||
|
|
||||||
read -r -d '' message <<- EOM
|
read -r -d '' message <<- EOM
|
||||||
|
|
||||||
You have selected this Analyst workstation to be independant.
|
You have selected this Analyst workstation to be independent.
|
||||||
|
|
||||||
Would you still like to install and load the graphical interface?
|
Would you still like to install and load the graphical interface?
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user