forked from hush/hush3
Duke Leto
4 years ago
4 changed files with 25 additions and 36 deletions
@ -1,47 +1,36 @@ |
|||||
#!/bin/bash |
#!/bin/bash |
||||
|
# Copyright (c) 2019-2020 Hush developers |
||||
|
|
||||
#set -ex |
#set -ex |
||||
|
echo "...Checking HUSH3.conf" |
||||
|
|
||||
echo "...Checking komodo.conf" |
if [ ! -e "$HOME/.komodo/HUSH3/HUSH3.conf" ]; then |
||||
|
mkdir -p $HOME/.komodo/HUSH3 |
||||
|
|
||||
if [ ! -e "$HOME/.komodo/komodo.conf" ]; then |
echo "...Creating HUSH3.conf" |
||||
mkdir -p $HOME/.komodo |
cat <<EOF > $HOME/.komodo/HUSH3.conf |
||||
|
rpcuser=hush |
||||
echo "...Creating komodo.conf" |
|
||||
cat <<EOF > $HOME/.komodo/komodo.conf |
|
||||
rpcuser=${rpcuser:-komodorpc} |
|
||||
rpcpassword=${rpcpassword:-`dd if=/dev/urandom bs=33 count=1 2>/dev/null | base64`} |
rpcpassword=${rpcpassword:-`dd if=/dev/urandom bs=33 count=1 2>/dev/null | base64`} |
||||
txindex=1 |
txindex=1 |
||||
bind=${listenip:-127.0.0.1} |
bind=${listenip:-127.0.0.1} |
||||
rpcbind=${listenip:-127.0.0.1} |
rpcbind=${listenip:-127.0.0.1} |
||||
|
# Some knobs you might want to turn |
||||
|
debug=0 |
||||
|
zdebug=0 |
||||
|
zindex=0 |
||||
EOF |
EOF |
||||
|
|
||||
cat $HOME/.komodo/komodo.conf |
cat $HOME/.komodo/HUSH3/HUSH3.conf |
||||
fi |
fi |
||||
|
|
||||
echo "...Checking fetch-params" |
|
||||
$HOME/zcutil/fetch-params.sh |
|
||||
echo "Initialization completed successfully" |
|
||||
echo |
|
||||
|
|
||||
# ToDo: Needs some rework. I was sick |
|
||||
if [ $# -gt 0 ]; then |
if [ $# -gt 0 ]; then |
||||
|
|
||||
args=("$@") |
args=("$@") |
||||
|
|
||||
elif [ -z ${assetchain+x} ]; then |
elif [ -z ${assetchain+x} ]; then |
||||
|
|
||||
args=("-gen -genproclimit=${genproclimit:-2} -pubkey=${pubkey}") |
args=("-gen -genproclimit=${genproclimit:-2} -pubkey=${pubkey}") |
||||
|
|
||||
else |
else |
||||
|
|
||||
args=("-pubkey=${pubkey} -ac_name=${assetchain} -addnode=${seednode}") |
args=("-pubkey=${pubkey} -ac_name=${assetchain} -addnode=${seednode}") |
||||
|
|
||||
fi |
fi |
||||
|
|
||||
echo |
echo "Running: hushd ${args[@]}" |
||||
echo "****************************************************" |
|
||||
echo "Running: komodod ${args[@]}" |
|
||||
echo "****************************************************" |
|
||||
|
|
||||
exec komodod ${args[@]} |
exec hushd ${args[@]} |
||||
|
@ -0,0 +1,4 @@ |
|||||
|
#!/bin/bash |
||||
|
# Copyright (c) 2019-2020 Hush developers |
||||
|
|
||||
|
/hush/src/hush-cli $@ |
@ -1,6 +0,0 @@ |
|||||
#!/bin/bash |
|
||||
|
|
||||
# ToDo: check for docker arg ac_name |
|
||||
|
|
||||
/komodo/src/komodo-cli $1 $2 $3 $4 |
|
||||
|
|
Loading…
Reference in new issue