diff options
author | setBoolean | 2021-04-03 20:13:55 +0200 |
---|---|---|
committer | setBoolean | 2021-04-03 20:13:55 +0200 |
commit | 391d2a20f7afd55d204b6f0f236dc0023352db40 (patch) | |
tree | 68916a3126332da9f2c42d2a290e611f8d152ae8 | |
parent | 4f16e63f6d4788b843fcc4650d8fc66e0cec2d55 (diff) | |
download | aur-391d2a20f7afd55d204b6f0f236dc0023352db40.tar.gz |
fix upgrade permission issues
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rwxr-xr-x | goshimmer.install | 10 |
3 files changed, 8 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = goshimmer-bin pkgdesc = GoShimmer implementation of Coordicide (official precompiled binary) pkgver = 0.5.6 - pkgrel = 1 + pkgrel = 2 url = https://github.com/iotaledger/goshimmer install = goshimmer.install arch = x86_64 @@ -2,7 +2,7 @@ pkgname="goshimmer-bin" _pkgname="goshimmer" pkgver="0.5.6" -pkgrel="1" +pkgrel="2" pkgdesc="GoShimmer implementation of Coordicide (official precompiled binary)" arch=('x86_64') url="https://github.com/iotaledger/goshimmer" diff --git a/goshimmer.install b/goshimmer.install index 6a2d469b513f..6674294e593a 100755 --- a/goshimmer.install +++ b/goshimmer.install @@ -4,19 +4,21 @@ pre_install() { if ! id -u goshimmer > /dev/null 2>&1; then useradd --no-create-home --system goshimmer > /dev/null fi - mkdir -p /var/lib/goshimmer - mkdir -p /etc/goshimmer + mkdir -p /var/lib/goshimmer /etc/goshimmer } post_install() { - chown -R goshimmer:goshimmer /var/lib/goshimmer - chown -R goshimmer:goshimmer /etc/goshimmer + chown -R goshimmer:goshimmer /var/lib/goshimmer /etc/goshimmer } pre_remove() { systemctl stop goshimmer.service } +post_upgrade() { + chown -R goshimmer:goshimmer /var/lib/goshimmer /etc/goshimmer +} + post_remove() { userdel goshimmer > /dev/null } |