Skip to content

Commit e146eda

Browse files
authored
Fixed CentOS8/RHEL8 package platform name (RedisJSON#405)
1 parent 77f559f commit e146eda

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

sbin/pack.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,13 @@ export OSNICK=$($READIES/bin/platform --osnick)
5959
# RLEC naming conventions
6060
[[ $ARCH == x64 ]] && ARCH=x86_64
6161
[[ $OS == linux ]] && OS=Linux
62-
if [[ $OSNICK == focal ]]; then
63-
OSNICK=ubuntu20.04
64-
elif [[ $OSNICK == bionic ]]; then
65-
OSNICK=ubuntu18.04
66-
elif [[ $OSNICK == xenial ]]; then
67-
OSNICK=ubuntu16.04
68-
elif [[ $OSNICK == trusty ]]; then
69-
OSNICK=ubuntu14.04
70-
elif [[ $OSNICK == centos7 ]]; then
71-
OSNICK=rhel7
72-
fi
62+
63+
[[ $OSNICK == trusty ]] && OSNICK=ubuntu14.04
64+
[[ $OSNICK == xenial ]] && OSNICK=ubuntu16.04
65+
[[ $OSNICK == bionic ]] && OSNICK=ubuntu18.04
66+
[[ $OSNICK == focal ]] && OSNICK=ubuntu20.04
67+
[[ $OSNICK == centos7 ]] && OSNICK=rhel7
68+
[[ $OSNICK == centos8 ]] && OSNICK=rhel8
7369

7470
export PRODUCT=rejson
7571
export PRODUCT_LIB=$PRODUCT.so

0 commit comments

Comments
 (0)