Add system information at beginning of installation; provide logging functions to be used instead of echo commands

This commit is contained in:
Jason Ertel
2020-08-13 17:29:45 -04:00
parent 34d8261669
commit 3c113a7a89
2 changed files with 38 additions and 5 deletions

View File

@@ -48,9 +48,11 @@ done
# Begin Installation pre-processing
parse_install_username
echo "Installing as the $INSTALLUSERNAME user." >> $setup_log 2>&1
echo "---- Starting setup at $(date -u) ----" >> $setup_log 2>&1
header "Initializing Setup"
info "Installing as the $INSTALLUSERNAME user"
analyze_system
automated=no
function progress() {
@@ -76,9 +78,6 @@ if [[ -f automation/$automation && $(basename $automation) == $automation ]]; th
source automation/$automation
automated=yes
echo "Checking network configuration" >> $setup_log 2>&1
ip a >> $setup_log 2>&1
attempt=1
attempts=60
ip a | grep "$MNIC:" | grep "state UP" >> $setup_log 2>&1