This commit is contained in:
Michel Roegl-Brunner 2025-05-15 11:33:13 +02:00
parent c7ba6705aa
commit 0a07f34b4b

View File

@ -29,6 +29,7 @@ $STD apt-get install -y \
snmpd
msg_ok "Installed Dependencies"
PHP_VERSION=8.2
install_php
install_mariadb
install_composer
@ -58,16 +59,12 @@ $STD useradd librenms -d /opt/librenms -M -r -s "$(which bash)"
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/
pip3 install --no-user -r /opt/librenms/requirements.txt
cat <<EOF >/opt/librenms/.env
DB_DATABASE=${DB_NAME}
DB_USERNAME=${DB_USER}
DB_PASSWORD=${DB_PASS}
EOF
chown -R librenms:librenms /opt/librenms
chmod 771 /opt/librenms
setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd