1 # arg 1: the new package version
3 /usr/sbin/groupadd i2p 2>/dev/null || true
4 /usr/sbin/useradd -s /bin/false -g i2p -d /opt/i2p i2p 2>/dev/null || true
5 chown -R i2p:i2p /opt/i2p
9 # arg 1: the new package version
10 # arg 2: the old package version
12 chown -R i2p:i2p /opt/i2p
16 # arg 1: the old package version
18 /usr/sbin/userdel -r i2p
22 # arg 1: the old package version