build: replace yum with dnf
dnf has replaced yum on Fedora and CentOS. On modern versions of Fedora, you have to install an extra package to get the old name working, so avoid that inconvenience and use dnf directly.
This commit is contained in:
parent
d6225c5231
commit
22d71c5c1c
|
@ -22,5 +22,5 @@
|
|||
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
|
||||
apt -y install maven openjdk-8-jdk-headless
|
||||
elif [ "$ID" = "fedora" ] || [ "$ID" = "centos" ]; then
|
||||
yum install -y maven java-1.8.0-openjdk-devel
|
||||
dnf install -y maven java-1.8.0-openjdk-devel
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue