__grafana_dashboard: cleanup

This commit is contained in:
kamila 2018-03-11 10:52:25 +01:00
parent 34aefbc0f6
commit 7ae24cf677

View file

@ -7,44 +7,34 @@ case $os in
debian|devuan)
case $os_version in
8*|jessie)
__apt_key_uri grafana \
--name 'Grafana Release Signing Key' \
--uri https://packagecloud.io/gpg.key
require="__apt_key_uri/grafana" __apt_source grafana \
--uri https://packagecloud.io/grafana/stable/debian/ \
--distribution jessie \
--component main
__package apt-transport-https
require="__apt_source/grafana __package/apt-transport-https" __package grafana
require="__package/grafana" __start_on_boot grafana-server
apt_source_distribution=jessie
;;
9*|ascii/ceres)
apt_source_distribution=stretch
;;
*)
echo "Don't know how to install Grafana on $os $os_version. Send us a pull request!" >&2
exit 1
;;
esac
__apt_key_uri grafana \
--name 'Grafana Release Signing Key' \
--uri https://packagecloud.io/gpg.key
require="__apt_key_uri/grafana" __apt_source grafana \
require="$require __apt_key_uri/grafana" __apt_source grafana \
--uri https://packagecloud.io/grafana/stable/debian/ \
--distribution stretch \
--distribution $apt_source_distribution \
--component main
__package apt-transport-https
require="__apt_source/grafana __package/apt-transport-https" __package grafana
require="__package/grafana" __start_on_boot grafana-server
require="$require __apt_source/grafana __package/apt-transport-https" __package grafana
require="$require __package/grafana" __start_on_boot grafana-server
require="$require __start_on_boot/grafana-server" __process grafana-server --start "service grafana-server start"
;;
*)
echo "Don't know how to install Grafana on $os $os_version. Send us a pull request!"
exit 1
;;
esac
;;
*)
echo "Don't know how to install Grafana on $os. Send us a pull request!"
echo "Don't know how to install Grafana on $os. Send us a pull request!" >&2
exit 1
;;
esac