diff options
author | Your Name | 2019-02-24 15:53:33 -0500 |
---|---|---|
committer | Your Name | 2019-02-24 15:53:33 -0500 |
commit | 9c630e8e3490b579322738880d53667f059bd6d5 (patch) | |
tree | 686dbaac9eea580c9995d33f3780b6da083a7d4e | |
parent | 979bb949a13b236a1f11137e9dd8b48c1a99bec6 (diff) | |
download | aur-9c630e8e3490b579322738880d53667f059bd6d5.tar.gz |
fix permissions
-rw-r--r-- | .SRCINFO | 2 | ||||
-rwxr-xr-x | PKGBUILD | 5 | ||||
-rwxr-xr-x | i2p.install | 4 |
3 files changed, 7 insertions, 4 deletions
@@ -1,3 +1,5 @@ +# Generated by mksrcinfo v8 +# Sun Feb 24 20:53:29 UTC 2019 pkgbase = i2p-bin pkgdesc = A distributed anonymous network (pre-compiled binary) pkgver = 0.9.38 @@ -41,17 +41,18 @@ package() { cd "$pkgdir" install -dm755 "usr/bin" - install -dm750 "opt/i2p" + install -dm755 "opt/i2p" install -Dm644 "$srcdir/router.config" "opt/i2p/router.config" install -Dm644 "$srcdir/wrapper.config" "opt/i2p/wrapper.config" - install -Dm755 "$srcdir/i2prouter.sh" "opt/i2p/i2prouter" + install -Dm644 "$srcdir/i2prouter.sh" "opt/i2p/i2prouter" install -Dm644 "$srcdir/i2prouter.service" "usr/lib/systemd/system/i2prouter.service" install -Dm644 "opt/i2p/man/eepget.1" "usr/share/man/man1/eepget.1" install -Dm644 "opt/i2p/LICENSE.txt" "usr/share/licenses/i2p/LICENSE" mv opt/i2p/licenses/* "usr/share/licenses/i2p/" ln -s /opt/i2p/{eepget,i2prouter} "usr/bin/" + chmod +x "$pkgdir"/opt/i2p/{eepget,i2prouter} chmod -x opt/i2p/*.config chmod 755 opt/i2p diff --git a/i2p.install b/i2p.install index 54b9ec2ac9d0..caa60bd1a788 100755 --- a/i2p.install +++ b/i2p.install @@ -3,13 +3,13 @@ post_install() { echo "==> I2P Router settings can be adjusted at" echo "==> http://127.0.0.1:7657/config.jsp" echo "==> " - post_upgrade } + ## 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' ]] && { + [[ $(id -g i2p) = '985' ]] || { echo -n ">>> Updating i2p user..." groupmod --gid 985 i2p usermod --uid 985 -s /bin/sh i2p |