Minor bug fix : dnf requires elevated priveleges to enable modules. (#7493)

Tested on Fedora and Rocky.

Co-authored-by: h <h@localhost.localdomain>
This commit is contained in:
seraphik 2021-07-14 22:57:02 +03:00 committed by GitHub
parent fa2e66bc74
commit 7709599f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ if [ "$(uname)" = "Linux" ]; then
elif type yum && [ -f /etc/rocky-release ] || [ -f /etc/fedora-release ]; then
# RockyLinux
echo "Installing on RockyLinux/Fedora"
dnf module enable nodejs:12
sudo dnf module enable nodejs:12
sudo dnf install -y nodejs
fi