diff --git a/install/librenms-install.sh b/install/librenms-install.sh index 03ae3e179..91f675ef0 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -126,7 +126,7 @@ $STD su - librenms -s /bin/bash -c "cd /opt/librenms && COMPOSER_ALLOW_SUPERUSER $STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan key:generate --force" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms db:seed --force" -$STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms user:add -p ${APP_USER} -r ${APP_USER} ${APP_PASSWORD}" +$STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms user:add -p ${APP_PASSWORD} ${APP_USER} --role=admin" RANDOM_STRING=$(openssl rand -base64 16 | tr -dc 'a-zA-Z0-9') sed -i "s/RANDOMSTRINGHERE/$RANDOM_STRING/g" /etc/snmp/snmpd.conf