Install curl in preflight script to avoid error on Ubuntu

Also add check for already installed curl later in setup
This commit is contained in:
William Wernert
2022-01-18 13:17:56 -05:00
parent 19ccd5f8e9
commit c0c42c3574
2 changed files with 12 additions and 1 deletions

View File

@@ -1156,7 +1156,9 @@ installer_prereq_packages() {
systemctl start NetworkManager
} >> "$setup_log" 2<&1
fi
retry 50 10 "apt-get -y install curl" >> "$setup_log" 2>&1 || exit 1
if ! command -v curl > /dev/null 2>&1; then
retry 50 10 "apt-get -y install curl" >> "$setup_log" 2>&1 || exit 1
fi
fi
}