Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
bourneAc committed Dec 5, 2018
1 parent 7df7bac commit 1905650
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions build/geropkg/attach.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,30 @@ DATADIR="${ROOT}/data"
if [ ! -z "$1" ]; then
DATADIR=$1
fi

function sysname() {

SYSTEM=`uname -s`
if [[ "Darwin" == "$SYSTEM" ]]
then
echo "Darwin"
fi

if [[ "Linux" == "$SYSTEM" ]]
then
name=`cat /etc/system-release|awk '{print $1}'`
echo "Linux $name"
fi
}

SNAME=`sysname`
if [[ "Darwin" = "$SNAME" ]];then
export DYLD_LIBRARY_PATH=${ROOT}/czero/lib/
echo $DYLD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=${ROOT}/czero/lib/
echo $LD_LIBRARY_PATH
fi

${ROOT}/bin/gero --datadir=${DATADIR} attach

2 changes: 1 addition & 1 deletion build/geropkg/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if [[ $# -gt 0 ]]; then
cmd="$cmd --alpha";shift;;
--rpc)
localhost=$(hostname -I|awk -F ' ' '{print $1}')
cmd="$cmd --rpc --rpcport $2 --rpcaddr $localhost --rpcapi 'personal,sero,web3' --rpccorsdomain '*'";shift;;
cmd="$cmd --rpc --rpcport $2 --rpcaddr $localhost --rpcapi 'personal,sero,web3' --rpccorsdomain '*'";shift 2;;
--port)
cmd=${cmd/--port ${DEFAULT_PORT}/--port $2};shift 2;;
--keystore)
Expand Down

0 comments on commit 1905650

Please sign in to comment.