updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / i2p-portable / i2p.install
blobef606bc667bb9950df68b53ecc46fcb24764fb27
1 # arg 1:  the new package version
2 post_install() {
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
6   /bin/true
9 # arg 1:  the new package version
10 # arg 2:  the old package version
11 post_upgrade() {
12   chown -R i2p:i2p /opt/i2p
13   /bin/true
16 # arg 1:  the old package version
17 pre_remove() {
18   /usr/sbin/userdel -r i2p
19   /bin/true
22 # arg 1:  the old package version
23 post_remove() {
24   /bin/true
27 op=$1
28 shift
29 $op $*