1 # arg 1: the new package version
4 /usr/sbin/groupadd i2p 2>/dev/null || true
5 /usr/sbin/useradd -s /bin/bash -g i2p -d /opt/i2p i2p 2>/dev/null || true
6 chown -R i2p:i2p /opt/i2p
10 # arg 1: the new package version
11 # arg 2: the old package version
13 chown -R i2p:i2p /opt/i2p
15 if [ "$(vercmp $1 0.8.10-1)" -eq 1 ]; then
16 echo -en "Updating i2p user's shell..."
17 /usr/sbin/usermod -s /bin/bash i2p 2>/dev/null
23 # arg 1: the old package version
25 /usr/sbin/userdel -r i2p
29 # arg 1: the old package version