Skip to content

Commit a6c8b07

Browse files
authored
Update for V5.7
1 parent 3940daf commit a6c8b07

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/script/function.sh

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/sh
22

3-
# Declare constants for OS Ubuntu, CentOS, openSUSE
3+
# Declare constants for OS Ubuntu, CentOS, openSUSE, RockyLinux
44
readonly UBUNTU=Ubuntu
55
readonly CENTOS=Centos
66
readonly OPENSUSE=Opensuse
7+
readonly ROCKYLINUX=Rockylinux
78

89
# Check if the file exists with the parameter path passed
910
check_file_exist() {
@@ -28,7 +29,7 @@ build_griddb() {
2829
local os=$1
2930
cd griddb/
3031
case $os in
31-
$CENTOS | $OPENSUSE | $UBUNTU)
32+
$CENTOS | $OPENSUSE | $UBUNTU | $ROCKYLINUX)
3233
# Build GridDB server
3334
./bootstrap.sh
3435
./configure
@@ -54,7 +55,7 @@ build_package() {
5455
zip -r $griddb_zip_file $griddb_folder_name
5556

5657
case $os in
57-
$CENTOS)
58+
$CENTOS | $ROCKYLINUX)
5859
cp $griddb_zip_file griddb/installer/SOURCES/
5960
rm -rf $griddb_folder_name
6061
cd griddb/installer
@@ -92,7 +93,7 @@ check_package() {
9293
local os=$2
9394

9495
case $os in
95-
$CENTOS | $OPENSUSE)
96+
$CENTOS | $OPENSUSE | $ROCKYLINUX)
9697
rpm -qip $package_path
9798
;;
9899
$UBUNTU)
@@ -112,7 +113,7 @@ install_griddb() {
112113

113114
# Install package
114115
case $os in
115-
$CENTOS | $OPENSUSE)
116+
$CENTOS | $OPENSUSE | $ROCKYLINUX)
116117
rpm -ivh $package_path
117118
;;
118119
$UBUNTU)
@@ -179,7 +180,7 @@ uninstall_package() {
179180
local package_name=$1
180181
local os=$2
181182
case $os in
182-
$CENTOS | $OPENSUSE)
183+
$CENTOS | $OPENSUSE | $ROCKYLINUX)
183184
rpm -e $package_name
184185
;;
185186
$UBUNTU)
@@ -198,7 +199,7 @@ copy_package_to_host() {
198199
local griddb_version=$(get_version)
199200

200201
case $os in
201-
$CENTOS)
202+
$CENTOS | $ROCKYLINUX)
202203
mkdir -p installer/RPMS/x86_64/
203204
docker cp $container_name:/griddb/installer/RPMS/x86_64/griddb-${griddb_version}-linux.x86_64.rpm installer/RPMS/x86_64/
204205
;;
@@ -214,3 +215,4 @@ copy_package_to_host() {
214215
;;
215216
esac
216217
}
218+

0 commit comments

Comments
 (0)