Created
May 20, 2016 20:35
-
-
Save Node0/ea2d58e7f6ff597e1dfa9bd2f6cf1c55 to your computer and use it in GitHub Desktop.
How to update (early versions) of the crate-datasource for Graphana (run this script as root to update the crate-datasource to the latest version).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
grafana-cli plugins uninstall crate-datasource; | |
grafana-cli plugins remove crate-datasource; | |
rm -rf /usr/share/grafana/public/app/plugins/datasource/crate-datasource /usr/share/grafana/data/plugins/crate-datasource /var/lib/grafana/plugins/crate-datasource/; | |
grafana-cli plugins install crate-datasource; | |
mkdir /var/lib/grafana/tempclone; | |
cd /var/lib/grafana/tempclone; | |
git clone https://github.com/raintank/crate-datasource.git; | |
cp -r /var/lib/grafana/tempclone/crate-datasource/dist /var/lib/grafana/plugins/crate-datasource/; | |
cd ..; | |
rm -rf /var/lib/grafana/tempclone; | |
chown -R grafana:grafana /var/lib/grafana; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment