Skip to content

Commit 9edf928

Browse files
committed
wip fix el family designation
1 parent 0354fb7 commit 9edf928

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tasks/install_linux.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ set_repository() {
7171
local _family="$1"
7272

7373
case $_family in
74-
amazon|fedora|rhel|sles)
74+
amazon|fedora|el|sles)
7575
repository=$yum_source
7676
;;
7777
debian|ubuntu)
@@ -88,7 +88,7 @@ set_package_type() {
8888
local _family="$1"
8989

9090
case $_family in
91-
amazon|fedora|rhel|sles)
91+
amazon|fedora|el|sles)
9292
package_type='rpm'
9393
package_file_suffix='noarch.rpm'
9494
;;
@@ -112,7 +112,7 @@ set_collection_url() {
112112
family='amazon'
113113
;;
114114
RHEL|RedHat|CentOS|Scientific|OracleLinux|Rocky|AlmaLinux)
115-
family='rhel'
115+
family='el'
116116
;;
117117
Fedora)
118118
family='fedora'
@@ -136,7 +136,9 @@ set_collection_url() {
136136
set_package_type $family
137137

138138
if [ "${package_type}" == 'rpm' ]; then
139-
package_name="${collection}-release-${family}-${full_version}.${package_file_suffix}"
139+
major_version=${full_version%%.*}
140+
assigned 'major_version'
141+
package_name="${collection}-release-${family}-${major_version}.${package_file_suffix}"
140142
else
141143
package_name="${collection}-release-${family}${full_version}.${package_file_suffix}"
142144
fi

0 commit comments

Comments
 (0)