nixos/grafana: create directory for notifiers provisioning
This commit is contained in:
parent
535f4892fa
commit
507b66a5e5
@ -73,7 +73,7 @@ let
|
|||||||
notifierFile = pkgs.writeText "notifier.yaml" (builtins.toJSON notifierConfiguration);
|
notifierFile = pkgs.writeText "notifier.yaml" (builtins.toJSON notifierConfiguration);
|
||||||
|
|
||||||
provisionConfDir = pkgs.runCommand "grafana-provisioning" { } ''
|
provisionConfDir = pkgs.runCommand "grafana-provisioning" { } ''
|
||||||
mkdir -p $out/{datasources,dashboards}
|
mkdir -p $out/{datasources,dashboards,notifiers}
|
||||||
ln -sf ${datasourceFile} $out/datasources/datasource.yaml
|
ln -sf ${datasourceFile} $out/datasources/datasource.yaml
|
||||||
ln -sf ${dashboardFile} $out/dashboards/dashboard.yaml
|
ln -sf ${dashboardFile} $out/dashboards/dashboard.yaml
|
||||||
ln -sf ${notifierFile} $out/notifiers/notifier.yaml
|
ln -sf ${notifierFile} $out/notifiers/notifier.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user