diff options
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 +} + |