Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Added script to copy grafana DBs from the test server
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Gryglicki <lukaszgryglicki@o2.pl>
  • Loading branch information
lukaszgryglicki committed Jan 31, 2018
1 parent 020d353 commit 7b4c2e2
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions devel/get_grafana_dbs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh
host=`hostname`
if [ $host = "cncftest.io" ]
then
all="k8s prometheus opentracing fluentd linkerd grpc coredns containerd rkt cni envoy jaeger notary tuf rook all cncf"
else
all="k8s prometheus opentracing fluentd linkerd grpc coredns containerd rkt cni envoy jaeger notary tuf rook"
fi
for proj in $all
do
echo "wget grafana.$proj.db"
rm -f grafana.$proj.db 2>/dev/null
wget https://cncftest.io/grafana.$proj.db || exit 1
ls -l grafana.$proj.db
cp grafana.$proj.db /var/lib/grafana.$proj/grafana.db || exit 2
done
echo 'OK'

0 comments on commit 7b4c2e2

Please sign in to comment.