From 80cd78d947f3b517726eedc8fcb216daad5da093 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 18 Nov 2025 11:05:50 +0100 Subject: [PATCH] Refactor LibreNMS credentials output format Updated the script to change how LibreNMS credentials are written to the creds file, adding a header for clarity. --- install/librenms-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/librenms-install.sh b/install/librenms-install.sh index 91f675ef0..e1576bd54 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -116,11 +116,11 @@ cp /opt/librenms/snmpd.conf.example /etc/snmp/snmpd.conf APP_PASSWORD=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13) APP_USER="admin" -cat >~/librenms.creds <<'EOF' -LibreNMS Admin User Credentials -Username: ${APP_USER} -Password: ${APP_PASSWORD} -EOF +{ + echo "LibreNMS Credentials" + echo "Username: ${APP_USER}" + echo "Password: ${APP_PASSWORD}" +} >>~/librenms.creds $STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER=1 composer install --no-dev" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force"