summaryrefslogtreecommitdiff
path: root/community/murmur/murmur.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/murmur/murmur.install
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/murmur/murmur.install')
-rw-r--r--community/murmur/murmur.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/murmur/murmur.install b/community/murmur/murmur.install
new file mode 100644
index 000000000..fecd2c2ca
--- /dev/null
+++ b/community/murmur/murmur.install
@@ -0,0 +1,16 @@
+post_install() {
+ getent group murmur > /dev/null || groupadd -r -g 86 murmur 1>/dev/null
+ getent passwd murmur > /dev/null || useradd -r -u 86 -d /var/lib/murmur -g murmur -s /bin/false murmur 1>/dev/null
+
+ chown -R murmur:murmur /var/lib/murmur
+
+ echo "You might have to reload dbus before launching murmur:"
+ echo " systemctl reload bus"
+ echo "Don't forget to set the superuser password:"
+ echo " murmurd -ini /etc/murmur.ini -supw <your-password>"
+}
+
+post_remove() {
+ getent passwd murmur > /dev/null && userdel murmur 1>/dev/null
+ getent group murmur > /dev/null && groupdel murmur 1>/dev/null
+}