summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo P2018-02-15 20:43:46 -0500
committerLeo P2018-02-15 20:43:46 -0500
commit0fd1512e075fa04df147e0dc11ffe0652ea93020 (patch)
tree43acef26cf59ab1447dfb8f72074ea28f26c46ef
parent8134cbc9b57c0befe9de83094bf96fd36b4a938a (diff)
downloadaur-0fd1512e075fa04df147e0dc11ffe0652ea93020.tar.gz
bump install
-rw-r--r--.SRCINFO2
-rw-r--r--install11
2 files changed, 10 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3d37aa8ca3bb..bc3d5d27fdc0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/install b/install
index d11787f8bd45..a993838e0133 100644
--- a/install
+++ b/install
@@ -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 || {