M #-: Fallback detection in onesysprep of RHEL/CentOS 6

pull/252/head
Your Name 3 years ago
parent b87d2c8959
commit b10f2b32c4
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -492,6 +492,13 @@ syscheck()
# shellcheck disable=SC1091
. /etc/os-release
_ONE_OS_ID=$(echo "$ID" | tr '[:upper:]' '[:lower:]')
# check for legacy RHEL/CentOS 6
elif [ -f /etc/centos-release ]; then
echo 'centos'
elif [ -f /etc/redhat-release ]; then
echo 'rhel'
else
_ONE_OS_ID=$(uname | tr '[:upper:]' '[:lower:]')
fi

Loading…
Cancel
Save