blob: ecd116a825249bf7a2d6c17f87cdd2013abce370 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
post_install() {
# bug: dbus reload here doesn't work
# workaround: it seems to work if you do it a few seconds later, manually
/etc/rc.d/dbus reload > /dev/null
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
chown -R murmur:murmur /var/log/murmur
echo
echo '==> Set the SuperUser password with (as root):'
echo '==> murmurd -ini /etc/murmur.ini -supw PASSWORD'
}
post_upgrade() {
post_install
}
pre_remove() {
[ -f /var/run/daemons/murmur ] && /etc/rc.d/murmur stop > /dev/null
killall -u murmur -5
sleep 1
}
post_remove() {
/etc/rc.d/dbus reload > /dev/null
getent passwd murmur > /dev/null && userdel murmur 1>/dev/null
getent group murmur > /dev/null && groupdel murmur 1>/dev/null
}
|