Add grafana dep recipe
[khome.git] / deps / grafana / install-grafana-on-debian-or-ubuntu.sh
1 #! /bin/sh
2
3 # === Package details ===
4 # Installs binary to
5 # /usr/sbin/grafana-server
6 # Installs Init.d script to
7 # /etc/init.d/grafana-server
8 # Creates default file (environment vars) to
9 # /etc/default/grafana-server
10 # Installs configuration file to
11 # /etc/grafana/grafana.ini
12 # Installs systemd service (if systemd is available) name
13 # grafana-server.service
14 # The default configuration sets the log file at
15 # /var/log/grafana/grafana.log
16 # The default configuration specifies a SQLite3 db at
17 # /var/lib/grafana/grafana.db
18 # Installs HTML/JS/CSS and other Grafana files at
19 # /usr/share/grafana
20
21
22 apt_source_file='/etc/apt/sources.list.d/grafana.list'
23
24 sudo apt install -y apt-transport-https
25 sudo apt install -y software-properties-common wget
26 wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
27 echo 'deb https://packages.grafana.com/oss/deb stable main' | sudo tee -a "$apt_source_file"
28 sudo chmod a+r "$apt_source_file"
29 sudo apt update
30 sudo apt install grafana
31
32 # Adding system user `grafana' (UID 130) ...
33 # Adding new user `grafana' (UID 130) with group `grafana' ...
34 # Not creating home directory `/usr/share/grafana'.
35 # ### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd
36 # sudo /bin/systemctl daemon-reload
37 # sudo /bin/systemctl enable grafana-server
38 # ### You can start grafana-server by executing
39 # sudo /bin/systemctl start grafana-server
40
41 sudo systemctl daemon-reload
42 #sudo systemctl start grafana-server
43 #sudo systemctl status grafana-server
44 #sudo systemctl enable grafana-server.service
This page took 0.062653 seconds and 4 git commands to generate.