|
|
@ -1,5 +1,7 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Copyright (c) 2019-2020 Hush developers |
|
|
|
# Copyright (c) 2019-2020 The Hush developers |
|
|
|
# Distributed under the GPLv3 software license, see the accompanying |
|
|
|
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html |
|
|
|
|
|
|
|
#set -ex |
|
|
|
echo "...Checking HUSH3.conf" |
|
|
@ -7,8 +9,10 @@ echo "...Checking HUSH3.conf" |
|
|
|
if [ ! -e "$HOME/.komodo/HUSH3/HUSH3.conf" ]; then |
|
|
|
mkdir -p $HOME/.komodo/HUSH3 |
|
|
|
|
|
|
|
DATE=$(date) |
|
|
|
echo "...Creating HUSH3.conf" |
|
|
|
cat <<EOF > $HOME/.komodo/HUSH3.conf |
|
|
|
# Generated by docker-entrypoint.sh at $DATE |
|
|
|
rpcuser=hush |
|
|
|
rpcpassword=${rpcpassword:-`dd if=/dev/urandom bs=33 count=1 2>/dev/null | base64`} |
|
|
|
txindex=1 |
|
|
|