From 73a2ad387de5c7cb4d79548a4c234561ea0b7fe2 Mon Sep 17 00:00:00 2001 From: Robert Martin-Legene <robert@nic.ar> Date: Tue, 11 Jun 2019 17:47:35 -0300 Subject: [PATCH] Copiar network/env a bin/env si desaparecio' --- bin/cron.sh | 2 ++ bin/start.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/bin/cron.sh b/bin/cron.sh index e191ee7..0c9c4c8 100755 --- a/bin/cron.sh +++ b/bin/cron.sh @@ -3,5 +3,7 @@ trap 'exit 1' ERR # Go to script bin, 'cause we expect to find $BFAHOME/bin/env there cd `dirname $0` +test -e "env" || cp -p ../network/env env + source ./env ./start.sh < /dev/null >&0 2>&0 diff --git a/bin/start.sh b/bin/start.sh index a3a2c0e..8718e5a 100755 --- a/bin/start.sh +++ b/bin/start.sh @@ -2,6 +2,7 @@ if [ -z "${BFAHOME}" ]; then echo "\$BFAHOME not set. Did you source bfa/bin/env ?" >&2; exit 1; fi source ${BFAHOME}/bin/libbfa.sh || exit 1 +test -e ${BFAHOME}/bin/env || cp -p ${BFANETWORKDIR}/env bin/env enodeARIU="7ec4dd9d5e1a2b29d6b60aa9f95677c0c3a5f9306e73d65dd3bcbfda3737a8c509b02d1eab763ce39f18cfe96423df7ee544d6c36191ec17f59ade75bc99d358" bootARIUv4="enode://${enodeARIU}@[170.210.45.179]:30301" -- GitLab