Skip to content

Commit f52815d

Browse files
committed
update rpm script for centos8
1 parent 0b7b533 commit f52815d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/rpm/generate_rpms.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ version=$(grep KEYDB_REAL_VERSION $DIR/../../src/version.h | awk '{ printf $3 }'
66
release=1 # by default this will always be 1 for keydb version structure. If build release version needs to be update you can modify here
77
arch=$(uname -m)
88
dist=el$(rpm -q --queryformat '%{VERSION}' centos-release | cut -d. -f1)
9+
if [[ "$dist" == "elpackage centos-release is not installed" ]]; then
10+
dist=el$(rpm -q --queryformat '%{VERSION}' centos-linux-release | cut -d. -f1)
11+
fi
912

1013
if [[ "$arch" != "aarch64" ]] && [[ "$arch" != "x86_64" ]]; then
1114
echo "This script is only valid and tested for aarch64 and x86_64 architectures. You are trying to use: $arch"

0 commit comments

Comments
 (0)