Update wrapper scripts for Debian systems

This commit is contained in:
Duke Leto
2019-10-18 15:28:55 -04:00
parent 258d04e0a0
commit a749108063
2 changed files with 42 additions and 18 deletions

View File

@@ -2,10 +2,20 @@
# Copyright (c) 2019 Hush developers # Copyright (c) 2019 Hush developers
# set working directory to the location of this script # set working directory to the location of this script
# readlink -f does not always exist
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR cd $DIR
DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )"
cd $DIR
NAME=HUSH3 NAME=HUSH3
CLI=${KOMODOCLI:-./komodo-cli} CLI=${KOMODOCLI:-./komodo-cli}
$CLI -ac_name=$NAME "$@" if [ -f $CLI ]; then
$CLI -ac_name=$NAME "$@"
else
# We prefix our binary when installed
# system wide on Debain system, to prevent clashes
CLI=hush-komodo-cli
$CLI -ac_name=$NAME "$@"
fi

View File

@@ -28,6 +28,7 @@ SEEDNODE1=188.165.212.101
SEEDNODE2=136.243.227.142 SEEDNODE2=136.243.227.142
SEEDNODE3=5.9.224.250 SEEDNODE3=5.9.224.250
CCLIB=hush3 CCLIB=hush3
SAPLING=1
# CryptoConditions/Custom Consensus params # CryptoConditions/Custom Consensus params
FAUCET=228 FAUCET=228
@@ -37,22 +38,35 @@ ORACLE=236
GATEWAY=241 GATEWAY=241
CCENABLE=$FAUCET,$HEIR,$CHANNEL,$ORACLE,$GATEWAY CCENABLE=$FAUCET,$HEIR,$CHANNEL,$ORACLE,$GATEWAY
#NOTE: This is not compatible with upstream KMD komodod,
# but you can reuse one hush3 komodod binary in various
# directories/repos on one server, to save disk space
KMD=${KOMODOD:-./komodod} KMD=${KOMODOD:-./komodod}
$KMD -ac_name=$NAME -ac_sapling=1 \ if [ -f $KMD ]; then
-ac_reward=$REWARD \ echo "Found binary: $KMD"
-ac_halving=$HALVING \ else
-ac_end=$END \ KMD=hush-komodod
-ac_eras=$ERAS \ if [ -f $KMD ]; then
-ac_blocktime=$BLOCKTIME \ echo "Found binary: $KMD"
-ac_cc=2 -ac_ccenable=$CCENABLE \ else
-ac_founders=$FOUNDERS -ac_supply=$SUPPLY \ echo "ERROR: Could not find Komodo binary!!!"
-ac_perc=$PERC \ exit 1
-clientname=$CLIENTNAME \ fi
-addnode=$SEEDNODE1 \ fi
-addnode=$SEEDNODE2 \
-addnode=$SEEDNODE3 \
-ac_cclib=$CCLIB \ $KMD -ac_name=$NAME \
-ac_sapling=$SAPLING \
-ac_reward=$REWARD \
-ac_halving=$HALVING \
-ac_end=$END \
-ac_eras=$ERAS \
-ac_blocktime=$BLOCKTIME \
-ac_cc=2 \
-ac_ccenable=$CCENABLE \
-ac_founders=$FOUNDERS \
-ac_supply=$SUPPLY \
-ac_perc=$PERC \
-clientname=$CLIENTNAME \
-addnode=$SEEDNODE1 \
-addnode=$SEEDNODE2 \
-addnode=$SEEDNODE3 \
-ac_cclib=$CCLIB \
-ac_script=$SCRIPT "$@" -ac_script=$SCRIPT "$@"