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
# 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
......
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