[fix] Don't remove answer file when checking version on manager, file does not yet exist

This commit is contained in:
William Wernert
2021-01-19 11:28:33 -05:00
parent 650008e1e6
commit 8023e79020

View File

@@ -829,7 +829,6 @@ compare_versions() {
manager_ver=$($sshcmd -i /root/.ssh/so.key soremote@"$MSRV" cat /etc/soversion)
if [[ $manager_ver == '' ]]; then
rm -rf $install_opt_file
echo "Could not determine version of Security Onion running on manager $MSRV. Please check your network settings and run setup again." | tee -a "$setup_log"
kill -SIGUSR1 "$(ps --pid $$ -oppid=)"; exit 1
fi