diff options
author | Slashbunny | 2016-07-02 17:21:14 -0400 |
---|---|---|
committer | Slashbunny | 2016-07-02 17:21:14 -0400 |
commit | f709671117383b448b2e8f32b545d94ff7fba49d (patch) | |
tree | eac3aeb47dc2136011dea08522f5104dd3604a72 /prometheus.install | |
download | aur-f709671117383b448b2e8f32b545d94ff7fba49d.tar.gz |
Initial commit
Diffstat (limited to 'prometheus.install')
-rw-r--r-- | prometheus.install | 10 |
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 +} + |