summarylogtreecommitdiffstats
path: root/chronograf.install
diff options
context:
space:
mode:
authorJustin Dray2015-11-24 22:27:09 +0100
committerJustin Dray2015-11-24 22:27:09 +0100
commitdb5181d30813c9464b370a111bacf4129191ba4b (patch)
treeb424ef920ce8cc21a654d6278fad66204486d8f0 /chronograf.install
downloadaur-db5181d30813c9464b370a111bacf4129191ba4b.tar.gz
Update to: 0.3.2-1
Diffstat (limited to 'chronograf.install')
-rw-r--r--chronograf.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/chronograf.install b/chronograf.install
new file mode 100644
index 000000000000..94f6d5919f65
--- /dev/null
+++ b/chronograf.install
@@ -0,0 +1,12 @@
+post_install() {
+ post_upgrade
+ passwd -l chronograf &>/dev/null
+}
+
+post_upgrade() {
+ getent group chronograf >/dev/null || groupadd -r chronograf
+ getent passwd chronograf >/dev/null || useradd -c 'chronograf' -g chronograf -d '/var/lib/chronograf' -r -m -s /bin/false chronograf
+
+ mkdir -p /var/lib/chronograf
+ chown chronograf.chronograf /var/lib/chronograf
+}