updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / i2p-portable-source / i2p.install
blob3d28e12f8609496e717df071cdacc727af595df4
1 # arg 1:  the new package version
3 post_install() {
4   /usr/sbin/groupadd i2p 2>/dev/null || true
5   /usr/sbin/useradd -s /bin/false -g i2p -d /opt/i2p i2p 2>/dev/null || true
6   chown -R i2p:i2p /opt/i2p
7   /bin/true
10 # arg 1:  the new package version
11 # arg 2:  the old package version
12 post_upgrade() {
13   chown -R i2p:i2p /opt/i2p
14   /bin/true
17 # arg 1:  the old package version
18 pre_remove() {
19   /usr/sbin/userdel -r i2p
20   /bin/true
23 # arg 1:  the old package version
24 post_remove() {
25   /bin/true
28 op=$1
29 shift
30 $op $*