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

Compilando geth como usuario bfa se me complica

parent 21b4b2de
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,11 @@ function golanginstall
info "Unpacking $name into /usr/local"
tar -C /usr/local -xzf go*.tar.gz
fi
PATH=${PATH}:/usr/local/go/bin
if [ $( expand < ~bfa/.bashrc | grep -E "^PATH=.*/usr/local/go/bin" | wc -l ) -eq 0 ]
then
echo "PATH=\${PATH}:/usr/local/go/bin" >> ~bfa/.bashrc
fi
export PATH=${PATH}:/usr/local/go/bin
}
function gethinstall
......@@ -123,8 +127,10 @@ function gethinstall
fi
#
info "Compiling geth"
sudo -u bfa make all
HISBINDIR=$( echo ~bfa/bfa )
echo PATH=$PATH
make all
chown -R bfa:bfa .
HISBINDIR=$( echo ~bfa/bin )
install --verbose --owner=bfa --group=bfa --directory ${HISBINDIR}
install --verbose --owner=bfa --group=bfa --target-directory=${HISBINDIR} ${NEW}/go-ethereum/build/bin/{geth,bootnode,abigen,ethkey,puppeth,rlpdump,wnode,swarm,swarm-smoke}
}
......
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