summaryrefslogtreecommitdiff
path: root/community/murmur/murmur.install
blob: 13eec8094b9e1fdfab2553d83e0ebe5c1ebd13b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 dbus"
    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
}