We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b87d2c8 commit b10f2b3Copy full SHA for b10f2b3
1 file changed
src/usr/sbin/onesysprep
@@ -492,6 +492,13 @@ syscheck()
492
# shellcheck disable=SC1091
493
. /etc/os-release
494
_ONE_OS_ID=$(echo "$ID" | tr '[:upper:]' '[:lower:]')
495
+
496
+ # check for legacy RHEL/CentOS 6
497
+ elif [ -f /etc/centos-release ]; then
498
+ echo 'centos'
499
+ elif [ -f /etc/redhat-release ]; then
500
+ echo 'rhel'
501
502
else
503
_ONE_OS_ID=$(uname | tr '[:upper:]' '[:lower:]')
504
fi
0 commit comments