Commit eeb29798 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Update make-rpm-packages.sh from 7.2

parent 9c30d039
...@@ -6,21 +6,28 @@ echo "PARAM_RELEASE: $PARAM_RELEASE" ...@@ -6,21 +6,28 @@ echo "PARAM_RELEASE: $PARAM_RELEASE"
echo "PARAM_DIST: $PARAM_DIST" echo "PARAM_DIST: $PARAM_DIST"
if [ -z "$PARAM_RELEASE" ]; then if [ -z "$PARAM_RELEASE" ]; then
echo "Env variable PARAM_RELEASE is not set! For example PARAM_RELEASE=8, for CentOS 8" echo "Env variable PARAM_RELEASE is not set! For example PARAM_RELEASE=stream, for CentOS stream"
exit 1 exit 1
elif [ -z "$PARAM_DIST" ]; then elif [ -z "$PARAM_DIST" ]; then
echo "Env variable PARAM_DIST is not set! For example PARAM_DIST=centos" echo "Env variable PARAM_DIST is not set! For example PARAM_DIST=centos"
exit 1 exit 1
fi fi
yum install -y epel-release case "$PARAM_DIST:$PARAM_RELEASE" in
almalinux:9)
if [ "$PARAM_DIST" = centos ]; then dnf install -y 'dnf-command(config-manager)'
if [ "$PARAM_RELEASE" = 8 ]; then yum config-manager --set-enabled crb
dnf install -y 'dnf-command(config-manager)' yum install -y epel-release
yum config-manager --set-enabled powertools ;;
fi centos:stream|almalinux:8)
fi dnf install -y 'dnf-command(config-manager)'
yum config-manager --set-enabled powertools
yum install -y epel-release
;;
centos:7)
yum install -y epel-release
;;
esac
yum install -y rpm-build yum-utils yum install -y rpm-build yum-utils
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment