diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-05-17 12:04:10 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-05-17 12:04:10 +0200 |
commit | 545b0b7de32c86264d4ec1eb7b7610e4c1c85946 (patch) | |
tree | 9ad399ce5176aee3c98f216f54a12a3e6d5290c6 /murmur/murmur.install | |
parent | 8dc1d552c0bab7b72371c3a1529e365410c7548c (diff) | |
parent | ac57415603ea60e9af632e70827dffa22cfff584 (diff) | |
download | aur-packages-545b0b7de32c86264d4ec1eb7b7610e4c1c85946.tar.gz aur-packages-545b0b7de32c86264d4ec1eb7b7610e4c1c85946.tar.xz |
Merge branch 'master' of git://git.server-speed.net/~flo/git/aur
Diffstat (limited to 'murmur/murmur.install')
-rw-r--r-- | murmur/murmur.install | 44 |
1 files changed, 21 insertions, 23 deletions
diff --git a/murmur/murmur.install b/murmur/murmur.install index d940c64..9e1446d 100644 --- a/murmur/murmur.install +++ b/murmur/murmur.install @@ -1,35 +1,33 @@ -# arg 1: the new package version -pre_install() { - /bin/true -} - post_install() { - echo ' -> The user SuperUser has a blank password! You can change' - echo ' -> this and administrate users with murmur-config.sh.' - echo '' -} -# arg 1: the new package version -# arg 2: the old package version -pre_upgrade() { - /bin/true + # 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 + + /usr/bin/getent group murmur > /dev/null || /usr/sbin/groupadd murmur + /usr/bin/getent passwd murmur > /dev/null || \ + /usr/sbin/useradd -d /var/lib/murmur -g murmur -s /bin/false murmur + + chown -R murmur:murmur /var/lib/murmur + chown -R murmur:murmur /var/run/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() { - /bin/true + post_install } -# arg 1: the old package version pre_remove() { - /bin/true + [ -f /var/run/daemons/murmur ] && /etc/rc.d/murmur stop > /dev/null + killall -u murmur -5 + sleep 1 } -# arg 1: the old package version post_remove() { - /bin/true + /etc/rc.d/dbus reload > /dev/null + /usr/sbin/userdel murmur > /dev/null } - -op=$1 -shift -$op $* -
\ No newline at end of file |