schutzbots: fix rpm install
`nodejs-npm` is only present on el10.
This commit is contained in:
parent
70686388b7
commit
b8a4b26013
1 changed files with 10 additions and 1 deletions
|
|
@ -1,10 +1,19 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
source /etc/os-release
|
||||
|
||||
sudo dnf install -y \
|
||||
nodejs-npm \
|
||||
libappstream-glib
|
||||
|
||||
# RHEL9 has nodejs and npm separately
|
||||
if [[ "$ID" == rhel && ${VERSION_ID%.*} == 10 ]]; then
|
||||
sudo dnf install -y nodejs-npm \
|
||||
sqlite # node fails to pull this in
|
||||
else
|
||||
sudo dnf install -y npm
|
||||
fi
|
||||
|
||||
npm ci
|
||||
|
||||
make rpm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue