Skip to content
Snippets Groups Projects
Commit 7b8d39c0 authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Do not die if bfa/network already exists

parent 689fc00e
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ function nodejsinstall ...@@ -32,7 +32,7 @@ function nodejsinstall
# Nodejs software repository PGP key # Nodejs software repository PGP key
if [ `apt-key export ${NODEJSPGP} 2>&1 | wc -l` -le 50 ] if [ `apt-key export ${NODEJSPGP} 2>&1 | wc -l` -le 50 ]
then then
info Add nodejs software repository PGP key info Adding nodejs software repository PGP key
apt-key adv --keyserver keyserver.ubuntu.com --recv ${NODEJSPGP} apt-key adv --keyserver keyserver.ubuntu.com --recv ${NODEJSPGP}
fi fi
local file=/etc/apt/sources.list.d/nodesource.list local file=/etc/apt/sources.list.d/nodesource.list
...@@ -144,7 +144,7 @@ function usersetup ...@@ -144,7 +144,7 @@ function usersetup
{ {
if ! id bfa >/dev/null 2>&1 if ! id bfa >/dev/null 2>&1
then then
info Add required user \"bfa\" info Adding required user \"bfa\"
adduser --disabled-password --gecos 'Blockchain Federal Argentina' bfa adduser --disabled-password --gecos 'Blockchain Federal Argentina' bfa
fi fi
cd ~bfa cd ~bfa
...@@ -163,7 +163,7 @@ function usersetup ...@@ -163,7 +163,7 @@ function usersetup
info Adding to automatically source \~bfa/bfa/bin/env via .bashrc info Adding to automatically source \~bfa/bfa/bin/env via .bashrc
echo 'source ~/bfa/bin/env' >> .bashrc echo 'source ~/bfa/bin/env' >> .bashrc
fi fi
mkdir ~bfa/bfa/network mkdir -p ~bfa/bfa/network
} }
function cronit function cronit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment