mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 21:15:53 +00:00
LibreNMS
This commit is contained in:
@@ -62,12 +62,11 @@ setfacl -R -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstra
|
|||||||
|
|
||||||
pip3 install --no-user -r /opt/librenms/requirements.txt
|
pip3 install --no-user -r /opt/librenms/requirements.txt
|
||||||
|
|
||||||
cp /opt/librenms/.env.example /opt/librenms/.env
|
cat <<EOF >/opt/librenms/.env
|
||||||
|
DB_DATABASE=${DB_NAME}
|
||||||
sed -i "s/^#DB_DATABASE=.*/DB_DATABASE=${DB_NAME}/" /opt/librenms/.env
|
DB_USERNAME=${DB_USER}
|
||||||
sed -i "s/^#DB_USERNAME=.*/DB_USERNAME=${DB_USER}/" /opt/librenms/.env
|
DB_PASSWORD=${DB_PASS}
|
||||||
sed -i "s/^#DB_PASSWORD=.*/DB_PASSWORD=${DB_PASS}/" /opt/librenms/.env
|
EOF
|
||||||
|
|
||||||
|
|
||||||
chown -R librenms:librenms /opt/librenms
|
chown -R librenms:librenms /opt/librenms
|
||||||
chmod 771 /opt/librenms
|
chmod 771 /opt/librenms
|
||||||
|
|||||||
Reference in New Issue
Block a user