Fix dotnet installation for Centos 8 Stream

This commit is contained in:
Evgeniy Antonyuk 2023-09-14 12:24:54 +05:00
parent 050870d516
commit e51f63e3c2

View File

@ -64,9 +64,7 @@ curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.
yum install -y https://rpm.nodesource.com/pub_${NODE_VERSION}.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm
#add dotnet repo
if [ $REV = "7" ] || [[ $DIST != "redhat" && $REV = "8" ]]; then
rpm -Uvh https://packages.microsoft.com/config/centos/$REV/packages-microsoft-prod.rpm || true
fi
[ $REV = "7" ] && rpm -Uvh https://packages.microsoft.com/config/centos/$REV/packages-microsoft-prod.rpm || true
#add mysql repo
[ "$REV" != "7" ] && dnf remove -y @mysql && dnf module -y reset mysql && dnf module -y disable mysql