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

Arreglando permisos en ~bfa

parent b937325a
No related branches found
No related tags found
No related merge requests found
...@@ -146,15 +146,20 @@ function usersetup ...@@ -146,15 +146,20 @@ function usersetup
info Adding 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 # If we're running inside a docker, this may already exist but
# probably owned by root. Let's make sure things are proper.
chown -R bfa:bfa ~bfa
# cloning if not done already # cloning if not done already
if [ ! -d ~bfa/bfa ] if [ ! -d ~bfa/bfa ]
then then
# initial cloning
cd ~bfa
git clone https://gitlab.bfa.ar/blockchain/nucleo.git bfa git clone https://gitlab.bfa.ar/blockchain/nucleo.git bfa
else
# updating
cd ~bfa/bfa
git pull
fi fi
# updating
cd ~bfa/bfa
git pull
# #
cd ~bfa cd ~bfa
if [ $( expand < .bashrc | grep -E 'source .*bfa/bin/env' | wc -l ) -eq 0 ] if [ $( expand < .bashrc | grep -E 'source .*bfa/bin/env' | wc -l ) -eq 0 ]
...@@ -182,6 +187,7 @@ function welcome ...@@ -182,6 +187,7 @@ function welcome
# Ubuntu necesita mas repos # Ubuntu necesita mas repos
grep -q Ubuntu /etc/issue && apt-add-repository multiverse grep -q Ubuntu /etc/issue && apt-add-repository multiverse
#
apt update apt update
# development tools # development tools
aptinstall dirmngr apt-transport-https curl git curl build-essential sudo aptinstall dirmngr apt-transport-https curl git curl build-essential sudo
......
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