fix rpm script for centos8
Former-commit-id: 6790d9b793b1995b2faae7dbfb5d09dce90a878c
This commit is contained in:
parent
d1bfe49bc2
commit
2c6d5c991f
@ -6,6 +6,9 @@ version=$(grep KEYDB_REAL_VERSION $DIR/../../src/version.h | awk '{ printf $3 }'
|
|||||||
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
|
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
|
||||||
arch=$(uname -m)
|
arch=$(uname -m)
|
||||||
dist=el$(rpm -q --queryformat '%{VERSION}' centos-release | cut -d. -f1)
|
dist=el$(rpm -q --queryformat '%{VERSION}' centos-release | cut -d. -f1)
|
||||||
|
if [[ "$dist" == "elpackage centos-release is not installed" ]]; then
|
||||||
|
dist=el$(rpm -q --queryformat '%{VERSION}' centos-linux-release | cut -d. -f1)
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$arch" != "aarch64" ]] && [[ "$arch" != "x86_64" ]]; then
|
if [[ "$arch" != "aarch64" ]] && [[ "$arch" != "x86_64" ]]; then
|
||||||
echo "This script is only valid and tested for aarch64 and x86_64 architectures. You are trying to use: $arch"
|
echo "This script is only valid and tested for aarch64 and x86_64 architectures. You are trying to use: $arch"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user