diff options
author | skydrome | 2019-11-06 01:30:42 -0500 |
---|---|---|
committer | skydrome | 2019-11-06 01:30:42 -0500 |
commit | 81b34eadb0c2624d3b69a229a2d63551104e9745 (patch) | |
tree | ccf8200fa8e87c9fe5a3ced64e12a34c396d00d4 /i2p.install | |
parent | 9431f135caf9977fa336cb8692af342a75a81f45 (diff) | |
download | aur-81b34eadb0c2624d3b69a229a2d63551104e9745.tar.gz |
rehaul i2p user creation/permissions and service file
Diffstat (limited to 'i2p.install')
-rwxr-xr-x | i2p.install | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/i2p.install b/i2p.install index 68c5726b257f..8bf945fbf96a 100755 --- a/i2p.install +++ b/i2p.install @@ -1,24 +1,9 @@ post_install() { - echo "==> " - echo "==> I2P Router settings can be adjusted at" + echo "==> I2P Router webui can be accessed 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* + rm -rf /opt/i2p/{lib*.so*,.tmp,.cache} + echo "==> Router configuration is saved in /opt/i2p/.i2p" } |