summaryrefslogtreecommitdiff
path: root/pcr/i2p/i2p.install
blob: 68c5726b257f0dae3a5e7812cfc023e4bb206e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
post_install() {
  echo "==> "
  echo "==> I2P Router settings can be adjusted at"
  echo "==> http://127.0.0.1:7657/config.jsp"
  echo "==> "
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade() {
    if (( $(vercmp $2 0.9.39) < 0 )); then
    [[ $(id -g i2p) = '985' ]] || {
        echo -n ">>> Updating i2p user..."
        groupmod --gid 985 i2p
        usermod  --uid 985 -s /bin/sh i2p
        chown -R 985:985 /opt/i2p
        echo " done"
    }
    fi
}

post_remove() {
    rm -f /opt/i2p/lib*.so*
}