From 3553434c6e8f16a19ce92f25e1322c81c24f3d87 Mon Sep 17 00:00:00 2001 From: Robert Martin-Legene <robert@nic.ar> Date: Thu, 23 May 2019 20:58:43 -0300 Subject: [PATCH] Compilando geth como usuario bfa se me complica --- bin/installbfa.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/installbfa.sh b/bin/installbfa.sh index 974212c..1b242b6 100755 --- a/bin/installbfa.sh +++ b/bin/installbfa.sh @@ -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} } -- GitLab