5 # arg 1: the new package version
7 if [ -z "`grep '^$igroup::' /etc/group`" ]; then
8 groupadd "$igroup" >& /dev/null
10 if [ -z "`grep '^$iuser:' /etc/passwd`" ]; then
11 useradd -d "$ihome" -g "$igroup" -s /bin/sh "$iuser"
14 #chown -R "root:$igroup" "$ihome"
15 chown -R "$iuser:$igroup" "$ihome"
16 #chmod -R g+rw "$ihome"
19 ls /opt/riak/etc/*.pacnew &> /dev/null && cat <<EOS
20 ==> WARNING! Riak configuration (or even storage backend) may changed since
21 ==> the last version, you rather check http://basho.com/ for changelog...
25 # arg 1: the new package version
26 # arg 2: the old package version
31 # arg 1: the old package version
33 /etc/rc.d/riak stop &>/dev/null; sleep 1;
37 chown -R "root:root" "$ihome"
39 userdel "$iuser" &> /dev/null
40 groupdel "$igroup" &> /dev/null