1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grafana_ynh.git synced 2024-09-03 20:36:29 +02:00

Fix LDAP authentication

This commit is contained in:
Jimmy Monin 2023-04-29 20:32:28 +02:00
parent 5141b68daf
commit ec16b0943c
2 changed files with 5 additions and 0 deletions

View file

@ -78,4 +78,6 @@ group_dn = "*"
org_role = "Admin" org_role = "Admin"
# The Grafana organization database id, optional, if left out the default org (id 1) will be used # The Grafana organization database id, optional, if left out the default org (id 1) will be used
org_id = 1 org_id = 1
# Make users grafana admins
grafana_admin = true

View file

@ -146,6 +146,9 @@ EOF
ynh_systemd_action --service_name=netdata --action="restart" ynh_systemd_action --service_name=netdata --action="restart"
fi fi
# Update Grafana LDAP authentication configuration
cp ../conf/ldap.toml /etc/grafana
# Update default dashboard for NetData (source: https://grafana.com/grafana/dashboards/2701) # Update default dashboard for NetData (source: https://grafana.com/grafana/dashboards/2701)
# Remove new lines # Remove new lines
tr -d '\n' < ../conf/netdata_dashboard.json > dashboard.json tr -d '\n' < ../conf/netdata_dashboard.json > dashboard.json