Automated setup will now output progress data to sosetup.log

This commit is contained in:
Jason Ertel
2020-05-27 11:47:18 -04:00
parent dde66a664c
commit 9cc2614cc8
2 changed files with 5 additions and 1 deletions

View File

@@ -998,7 +998,9 @@ parse_options() {
export {https,ftp,rsync,all}_proxy="$http_proxy" export {https,ftp,rsync,all}_proxy="$http_proxy"
;; ;;
*) *)
echo "Invalid option" if [[ $1 = --* ]]; then
echo "Invalid option"
fi
esac esac
} }

View File

@@ -33,6 +33,8 @@ echo "---- Starting setup at $(date -u) ----" >> $setup_log 2>&1
function progress() { function progress() {
if [ $automated == no ]; then if [ $automated == no ]; then
whiptail --title "Security Onion Install" --gauge 'Please wait while installing' 6 60 0 whiptail --title "Security Onion Install" --gauge 'Please wait while installing' 6 60 0
else
cat >> $setup_log 2>&1
fi fi
} }