Fix LibreNMS release name and improve Node.js install logs
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled

Corrects the case of the release name in the LibreNMS installer to 'librenms' and updates Node.js installation commands to use the $STD variable for consistent output and logging.
This commit is contained in:
CanbiZ 2025-11-04 13:13:08 +01:00
parent 07a5f145f6
commit 5ae38e84c8
2 changed files with 2996 additions and 2996 deletions

View File

@ -58,7 +58,7 @@ $STD mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUS
} >>~/librenms.creds
msg_ok "Configured Database"
fetch_and_deploy_gh_release "LibreNMS" "librenms/librenms"
fetch_and_deploy_gh_release "librenms" "librenms/librenms"
msg_info "Configuring LibreNMS"
$STD useradd librenms -d /opt/librenms -M -r -s "$(which bash)"

View File

@ -3108,16 +3108,16 @@ function setup_nodejs() {
sleep 2
# Install Node.js
if ! apt update >/dev/null 2>&1; then
if ! $STD apt update; then
msg_warn "APT update failed retrying in 5s"
sleep 5
if ! apt update >/dev/null 2>&1; then
if ! $STD apt update; then
msg_error "Failed to update APT repositories after adding NodeSource"
return 1
fi
fi
if ! apt install -y nodejs >/dev/null 2>&1; then
if ! $STD apt install -y nodejs; then
msg_error "Failed to install Node.js ${NODE_VERSION} from NodeSource"
return 1
fi