consider de(bi|vu)an version
This commit is contained in:
parent
ba933f1470
commit
4c7327e814
1 changed files with 19 additions and 10 deletions
|
@ -1,20 +1,29 @@
|
||||||
os=$(cat $__global/explorer/os)
|
os=$(cat $__global/explorer/os)
|
||||||
|
os_version=$(cat $__global/explorer/os_version)
|
||||||
|
|
||||||
case $os in
|
case $os in
|
||||||
debian|devuan)
|
debian|devuan)
|
||||||
__apt_key_uri grafana \
|
case $os_version in
|
||||||
--name 'Grafana Release Signing Key' \
|
8*|jessie)
|
||||||
--uri https://packagecloud.io/gpg.key
|
__apt_key_uri grafana \
|
||||||
|
--name 'Grafana Release Signing Key' \
|
||||||
|
--uri https://packagecloud.io/gpg.key
|
||||||
|
|
||||||
require="__apt_key_uri/grafana" __apt_source grafana \
|
require="__apt_key_uri/grafana" __apt_source grafana \
|
||||||
--uri https://packagecloud.io/grafana/stable/debian/ \
|
--uri https://packagecloud.io/grafana/stable/debian/ \
|
||||||
--distribution jessie \
|
--distribution jessie \
|
||||||
--component main
|
--component main
|
||||||
|
|
||||||
__package apt-transport-https
|
__package apt-transport-https
|
||||||
|
|
||||||
require="__apt_source/grafana __package/apt-transport-https" __package grafana
|
require="__apt_source/grafana __package/apt-transport-https" __package grafana
|
||||||
require="__package/grafana" __start_on_boot grafana-server
|
require="__package/grafana" __start_on_boot grafana-server
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
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!"
|
||||||
|
|
Loading…
Reference in a new issue