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

Merge pull request #99 from YunoHost-Apps/fix_grafana_9.5_ldap_auth

This commit is contained in:
JimboJoe 2023-04-29 20:45:19 +02:00 committed by GitHub
commit 53810bafdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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