Use explicit LibreNMS name in update messages

Replace generic ${APP} placeholders with the explicit name 'LibreNMS' in ct/librenms.sh update script messages to produce clearer logs. Also perform minor whitespace cleanup (remove extra blank lines) around the backup and fetch/deploy steps.
This commit is contained in:
MickLesk
2026-06-24 21:52:03 +02:00
parent 0c7ad4bf71
commit 237c93c87e
+2 -4
View File
@@ -34,12 +34,10 @@ function update_script() {
msg_ok "Stopped Services"
create_backup /opt/librenms/.env /opt/librenms/config.php /opt/librenms/rrd
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "librenms" "librenms/librenms" "tarball"
restore_backup
msg_info "Updating ${APP}"
msg_info "Updating LibreNMS"
mkdir -p /opt/librenms/{rrd,logs,bootstrap/cache,storage}
chown -R librenms:librenms /opt/librenms
chmod 771 /opt/librenms
@@ -48,7 +46,7 @@ function update_script() {
$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 optimize:clear"
$STD su - librenms -s /bin/bash -c "cd /opt/librenms && php8.4 artisan migrate --force --isolated"
msg_ok "Updated ${APP}"
msg_ok "Updated LibreNMS"
msg_info "Starting Services"
systemctl start php8.4-fpm librenms-scheduler.timer