From db64bc787735cd29e2e993dd0e17b6098795f258 Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Wed, 12 Nov 2025 16:19:41 +0100 Subject: [PATCH] Merge Main into --- install/librenms-install.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/install/librenms-install.sh b/install/librenms-install.sh index 2b9ff3e44..b94badc8a 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -121,12 +121,11 @@ systemctl restart php8.4-fpm msg_ok "Configured Nginx" msg_info "Configure Services" -COMPOSER_ALLOW_SUPERUSER=1 -$STD composer install --no-dev -$STD php8.4 artisan migrate --force -$STD php8.4 artisan key:generate --force -$STD su librenms -s /bin/bash -c "lnms db:seed --force" -$STD su librenms -s /bin/bash -c "lnms user:add -p admin -r admin admin" +$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" +$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 admin -r admin admin" ln -s /opt/librenms/lnms /usr/bin/lnms mkdir -p /etc/bash_completion.d/ cp /opt/librenms/misc/lnms-completion.bash /etc/bash_completion.d/