1 # arg 1: the new package version
3 if [ -z "`grep '^prosody:' /etc/group`" ]; then
4 groupadd -g 412 prosody
6 if [ -z "`grep '^prosody:' /etc/passwd`" ]; then
7 useradd -u 412 -d /var/lib/prosody -g prosody -s /bin/false prosody
10 chown prosody:prosody var/lib/prosody
11 chown prosody:prosody var/log/prosody
12 chown prosody:prosody var/run/prosody
16 ==> Documentation: http://wiki.archlinux.org/index.php/Prosody
17 ==> ChangeLog: pacman -Qc prosody
22 # arg 1: the new package version
23 # arg 2: the old package version
28 # arg 1: the old package version
32 paths=(/etc/prosody /var/lib/prosody /var/log/prosody
36 for path in ${paths[@]}; do
40 echo "==> Leftover Paths:"