Skip to content

Commit d75777d

Browse files
committed
Update import-dashboards.sh
1 parent c503b15 commit d75777d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

import-dashboards.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import_dashboards() {
2121
cp dashboards/*.json ./grafana/dashboards/
2222

2323
# Replace variables in dashboards
24-
for file in grafana/dashboards/*.json; do
24+
for file in ./grafana/dashboards/*.json; do
2525
# Replace data source objects with just the name of the source
2626
perl -0777 -pi -e 's|"datasource":\s*\{[^}]*DS_INFLUXDB[^\n]*\s+\}|"datasource": "InfluxDB (auto provisioned)"|gs' "$file"
2727
perl -0777 -pi -e 's|"datasource":\s*\{[^}]*DS_SUN_AND[^\n]*\s+\}|"datasource": "DS_SUN_AND MOON"|gs' "$file"

0 commit comments

Comments
 (0)