summarylogtreecommitdiffstats
path: root/prometheus.install
diff options
context:
space:
mode:
authorSlashbunny2016-07-02 17:21:14 -0400
committerSlashbunny2016-07-02 17:21:14 -0400
commitf709671117383b448b2e8f32b545d94ff7fba49d (patch)
treeeac3aeb47dc2136011dea08522f5104dd3604a72 /prometheus.install
downloadaur-f709671117383b448b2e8f32b545d94ff7fba49d.tar.gz
Initial commit
Diffstat (limited to 'prometheus.install')
-rw-r--r--prometheus.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/prometheus.install b/prometheus.install
new file mode 100644
index 000000000000..63b4917603e5
--- /dev/null
+++ b/prometheus.install
@@ -0,0 +1,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
+}
+