mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-11-19 12:05:16 +00:00
Refactor LibreNMS credentials output format
Updated the script to change how LibreNMS credentials are written to the creds file, adding a header for clarity.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user