Add initial pre-flight check script

This commit is contained in:
William Wernert
2021-02-23 13:25:54 -05:00
parent fad87a8789
commit 25698dafe3
2 changed files with 138 additions and 2 deletions

View File

@@ -905,9 +905,10 @@ detect_cloud() {
}
detect_os() {
local log=${1:-${setup_log}}
# Detect Base OS
echo "Detecting Base OS" >> "$setup_log" 2>&1
echo "Detecting Base OS" >> "$log" 2>&1
if [ -f /etc/redhat-release ]; then
OS=centos
if grep -q "CentOS Linux release 7" /etc/redhat-release; then
@@ -937,7 +938,7 @@ detect_os() {
exit 1
fi
echo "Found OS: $OS $OSVER" >> "$setup_log" 2>&1
echo "Found OS: $OS $OSVER" >> "$log" 2>&1
}