Merge branch 'master' into v0.18.1
This commit is contained in:
commit
b846bc05a2
|
@ -5,10 +5,12 @@ export HOME="/var/lib/bitcoind"
|
||||||
# gen random pw for rpc server
|
# gen random pw for rpc server
|
||||||
RANDOMPW=$(openssl rand -hex 10)
|
RANDOMPW=$(openssl rand -hex 10)
|
||||||
|
|
||||||
|
if [[ ! -e $HOME/bitcoin.conf ]]; then
|
||||||
cat <<EOF > $HOME/bitcoin.conf
|
cat <<EOF > $HOME/bitcoin.conf
|
||||||
rpcuser=${BITCOIND_RPCUSER:-rpcuser}
|
rpcuser=${BITCOIND_RPCUSER:-rpcuser}
|
||||||
rpcpassword=${BITCOIND_RPCPASSWORD:-$RANDOMPW}
|
rpcpassword=${BITCOIND_RPCPASSWORD:-$RANDOMPW}
|
||||||
EOF
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
# SECURITY this puts the rpc password into the container log
|
# SECURITY this puts the rpc password into the container log
|
||||||
cat $HOME/bitcoin.conf
|
cat $HOME/bitcoin.conf
|
||||||
|
|
Loading…
Reference in New Issue