From 3d8a5cf1847a188355b74a634b3cf422c3c8fac5 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Thu, 8 Jun 2017 19:07:48 +0200
Subject: [PATCH] [fix] Duniter Server must be launched from installation
 folder

---
 duniter.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/duniter.sh b/duniter.sh
index 3bd676ff4..23b5fba83 100755
--- a/duniter.sh
+++ b/duniter.sh
@@ -40,7 +40,8 @@ duniter() {
 	else
 
 	  # Calls duniter JS command
-	  $NODE --max_old_space_size=300 "$DUNITER_DIR/bin/duniter" "$@"
+	  cd $DUNITER_DIR
+	  $NODE "$DUNITER_DIR/bin/duniter" "$@"
 
 	fi;
 }
-- 
GitLab