Remove keys at the end of an install

This commit is contained in:
Mike Reeves
2022-04-12 15:33:17 -04:00
parent 8408628b03
commit 5253cb5d25
3 changed files with 15 additions and 3 deletions

View File

@@ -149,7 +149,14 @@ analyst_salt_local() {
logCmd "yum -y update --exclude=salt*"
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
}

View File

@@ -1083,6 +1083,11 @@ echo "1" > /root/accept_changes
add_web_user >> $setup_log 2>&1
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'
checkin_at_boot >> $setup_log 2>&1

View File

@@ -55,7 +55,7 @@ whiptail_analyst_nongrid_iso() {
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?
@@ -73,7 +73,7 @@ whiptail_analyst_nongrid_network() {
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?