From 53b06aa7468107ecb2c41a6b438ce270c95b6cab Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Thu, 15 May 2025 09:51:43 +0200 Subject: [PATCH] Update Librenms --- install/librenms-install.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/install/librenms-install.sh b/install/librenms-install.sh index f616558..31ccf30 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -55,11 +55,7 @@ msg_ok "Configured Database" msg_info "Setup Librenms" $STD useradd librenms -d /opt/librenms -M -r -s "$(which bash)" -tmp_file=$(mktemp) -RELEASE=$(curl -fsSL https://api.github.com/repos/librenms/librenms/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') -curl -fsSL https://github.com/librenms/librenms/archive/refs/tags/${RELEASE}.tar.gz -o $tmp_file -tar -xzf $tmp_file -C /opt -mv /opt/librenms-${RELEASE} /opt/librenms +fetch_and_deploy_gh_release "librenms/librenms" setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/ setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/