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 if [ -e /opt/riak/etc/app.config.pacnew ] || [ -e /opt/riak/etc/vm.args.pacnew ]
21 ls /opt/riak/etc/*.pacnew
23 ==> WARNING! Riak configuration (or even storage backend) may changed since
24 ==> the last version, check http://basho.com/ for changelog...
29 # arg 1: the new package version
30 # arg 2: the old package version
35 # arg 1: the old package version
37 /etc/rc.d/riak stop &>/dev/null; sleep 1;
41 chown -R "root:root" "$ihome"
43 userdel "$iuser" &> /dev/null
44 #groupdel "$igroup" &> /dev/null