From 7b8d39c06e27b4560adfd272811ab28db90fd72d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert=20Martin-Leg=C3=A8ne?= <robert@nic.ar>
Date: Thu, 27 Sep 2018 14:18:25 -0300
Subject: [PATCH] Do not die if bfa/network already exists

---
 bin/installbfa.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/installbfa.sh b/bin/installbfa.sh
index d21f5de..b58ef65 100755
--- a/bin/installbfa.sh
+++ b/bin/installbfa.sh
@@ -32,7 +32,7 @@ function nodejsinstall
     # Nodejs software repository PGP key
     if [ `apt-key export ${NODEJSPGP} 2>&1 | wc -l` -le 50 ]
     then
-        info Add nodejs software repository PGP key
+        info Adding nodejs software repository PGP key
         apt-key adv --keyserver keyserver.ubuntu.com --recv ${NODEJSPGP}
     fi
     local file=/etc/apt/sources.list.d/nodesource.list
@@ -144,7 +144,7 @@ function usersetup
 {
     if ! id bfa >/dev/null 2>&1
     then
-        info Add required user \"bfa\"
+        info Adding required user \"bfa\"
         adduser --disabled-password --gecos 'Blockchain Federal Argentina' bfa
     fi
     cd ~bfa
@@ -163,7 +163,7 @@ function usersetup
         info Adding to automatically source \~bfa/bfa/bin/env via .bashrc
         echo 'source ~/bfa/bin/env' >> .bashrc
     fi
-    mkdir ~bfa/bfa/network
+    mkdir -p ~bfa/bfa/network
 }
 
 function cronit
-- 
GitLab