schutzbots: fix rpm install

`nodejs-npm` is only present on el10.
This commit is contained in:
Sanne Raymaekers 2025-02-25 10:47:19 +01:00 committed by Klara Simickova
parent 70686388b7
commit b8a4b26013

View file

@ -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