diff options
author | Leo P | 2018-02-15 20:43:46 -0500 |
---|---|---|
committer | Leo P | 2018-02-15 20:43:46 -0500 |
commit | 0fd1512e075fa04df147e0dc11ffe0652ea93020 (patch) | |
tree | 43acef26cf59ab1447dfb8f72074ea28f26c46ef | |
parent | 8134cbc9b57c0befe9de83094bf96fd36b4a938a (diff) | |
download | aur-0fd1512e075fa04df147e0dc11ffe0652ea93020.tar.gz |
bump install
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | install | 11 |
2 files changed, 10 insertions, 3 deletions
@@ -1,5 +1,5 @@ # Generated by mksrcinfo v8 -# Thu Feb 15 23:40:41 UTC 2018 +# Fri Feb 16 01:43:36 UTC 2018 pkgbase = nanocurrency-git pkgdesc = Nano (formerly RaiBlocks) is a cryptocurrency designed from the ground up for scalable instant transactions and zero transaction fees. pkgver = 10.0.r1.g4e4bcf8d @@ -1,8 +1,15 @@ create_or_update_user() { if getent passwd raiblocks &>/dev/null; then echo -n ">>> Updating nano-node service user from raiblocks... " - usermod -l nano-node -m -d /var/lib/nano-node raiblocks - groupmod -n nano-node raiblocks + if systemctl is-active --quiet raiblocks-node; then + systemctl stop raiblocks-node + usermod -l nano-node -m -d /var/lib/nano-node raiblocks + groupmod -n nano-node raiblocks + systemctl start nano-node + else + usermod -l nano-node -m -d /var/lib/nano-node raiblocks + groupmod -n nano-node raiblocks + fi echo "done. Data has been moved to /var/lib/nano-node" else getent passwd nano-node &>/dev/null || { |