summarylogtreecommitdiffstats
path: root/prometheus.install
blob: 63b4917603e58089cc1360fa8f2dd97b0f004e02 (plain)
1
2
3
4
5
6
7
8
9
10
post_install() {
    id prometheus 2>/dev/null || useradd -r -U -M -s /bin/false prometheus
    mkdir -p "/var/lib/prometheus"
    chown prometheus.prometheus /var/lib/prometheus
}

post_remove() {
    userdel prometheus
}