Fix LibreNMS release name and improve Node.js install logs
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
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:
parent
07a5f145f6
commit
5ae38e84c8
@ -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)"
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user