Skip to content

Commit 0f73f4a

Browse files
Adding support for Rocky in cinc-installer.sh and bump version
The new addition is added based on the official CINC installer https://omnitruck.cinc.sh/install.sh Signed-off-by: Hanwen <[email protected]>
1 parent 148f416 commit 0f73f4a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

util/cinc-install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# - improvement in the dpkg installation to avoid conflicts with other running installations.
1212
#
1313
# When updating this modified file, please remember to bump the version and reference it in the CI/CD.
14-
# - cinc-install.sh v1.3.0
14+
# - cinc-install.sh v1.4.0
1515
#
1616
# WARNING: REQUIRES /bin/bash
1717
#
@@ -469,7 +469,13 @@ elif test -f "/etc/redhat-release"; then
469469
platform=`sed 's/^\(.\+\) release.*/\1/' /etc/redhat-release | tr '[A-Z]' '[a-z]'`
470470
platform_version=`sed 's/^.\+ release \([.0-9]\+\).*/\1/' /etc/redhat-release`
471471

472-
if test "$platform" = "xenserver"; then
472+
if test "$platform" = "rocky linux"; then
473+
source /etc/os-release
474+
os="${REDHAT_SUPPORT_PRODUCT}"
475+
platform_version="${ROCKY_SUPPORT_PRODUCT_VERSION}"
476+
platform=$ID
477+
478+
elif test "$platform" = "xenserver"; then
473479
# Current XenServer 6.2 is based on CentOS 5, platform is not reset to "el" server should handle response
474480
platform="xenserver"
475481
else

0 commit comments

Comments
 (0)