debian-image-builder-frontend/schutzbot/make_rpm_and_install.sh
Sanne Raymaekers b8a4b26013 schutzbots: fix rpm install
`nodejs-npm` is only present on el10.
2025-03-06 13:12:33 +01:00

21 lines
377 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
source /etc/os-release
sudo dnf install -y \
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
sudo dnf install -y rpmbuild/RPMS/noarch/*rpm