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
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
source /etc/os-release
|
||||||
|
|
||||||
sudo dnf install -y \
|
sudo dnf install -y \
|
||||||
nodejs-npm \
|
|
||||||
libappstream-glib
|
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
|
npm ci
|
||||||
|
|
||||||
make rpm
|
make rpm
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue