This commit is contained in:
CanbiZ 2025-05-07 14:39:40 +02:00
commit 1eed543b53

View File

@ -72,6 +72,12 @@ setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstra
setfacl -R -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/
$STD pip3 install -r /opt/librenms/requirements.txt $STD pip3 install -r /opt/librenms/requirements.txt
sed -i "s/^#DB_DATABASE=.*/DB_DATABASE=${DB_NAME}/" .env
sed -i "s/^#DB_USERNAME=.*/DB_USERNAME=${DB_USER}/" .env
sed -i "s/^#DB_PASSWORD=.*/DB_PASSWORD=${DB_PASS}/" .env
msg_ok "Setup Librenms" msg_ok "Setup Librenms"
msg_info "Setup Composer" msg_info "Setup Composer"
@ -86,6 +92,7 @@ setfacl -d -m g::rwx /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/li
chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd chmod -R ug=rwX /opt/librenms/bootstrap/cache /opt/librenms/storage /opt/librenms/logs /opt/librenms/rrd
msg_ok "Setup Composer" msg_ok "Setup Composer"
msg_info "Setup MariaDB" msg_info "Setup MariaDB"
sed -i '/\[mysqld\]/a innodb_file_per_table=1\nlower_case_table_names=0' /etc/mysql/mariadb.conf.d/50-server.cnf sed -i '/\[mysqld\]/a innodb_file_per_table=1\nlower_case_table_names=0' /etc/mysql/mariadb.conf.d/50-server.cnf
systemctl enable -q --now mariadb systemctl enable -q --now mariadb