Skip to content

Commit 73d45a2

Browse files
Use major version for rocky in cinc-installer.sh
This commit fixes a bug from #2992 This commit makes the code behave similar between rocky and el(redhat) Signed-off-by: Hanwen <[email protected]>
1 parent 59cce6b commit 73d45a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

util/cinc-install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,12 @@ case $platform in
579579
# FIXME: "el" is deprecated, should use "redhat"
580580
platform_version=$major_version
581581
;;
582+
# Warning: the official script from CINC doesn't use major version for rocky,
583+
# which is wrong according to the directory structure: https://downloads.cinc.sh/files/stable/cinc/18.7.10/rocky/
584+
# The behavior should be the same as "el" above. Therefore, the following rocky section is manually added.
585+
"rocky")
586+
platform_version=$major_version
587+
;;
582588
"debian")
583589
if test "x$major_version" = "x5"; then
584590
# This is here for potential back-compat.

0 commit comments

Comments
 (0)