summaryrefslogtreecommitdiff
path: root/community/gearmand/gearmand.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/gearmand/gearmand.install')
-rw-r--r--community/gearmand/gearmand.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/gearmand/gearmand.install b/community/gearmand/gearmand.install
new file mode 100644
index 000000000..56d8ac86b
--- /dev/null
+++ b/community/gearmand/gearmand.install
@@ -0,0 +1,12 @@
+post_install() {
+ getent group gearmand >/dev/null 2>&1 || groupadd -g 113 gearmand &>/dev/null
+ getent passwd gearmand >/dev/null 2>&1 || useradd -u 113 -g gearmand -d /dev/null -s /bin/false gearmand &>/dev/null
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ userdel gearmand
+}