improved random pw generation, no external package
This commit is contained in:
parent
eaa7b8b6ff
commit
b9482d0aaf
|
@ -21,14 +21,12 @@ RUN \
|
||||||
libboost-system-dev \
|
libboost-system-dev \
|
||||||
libboost-test-dev \
|
libboost-test-dev \
|
||||||
libboost-thread-dev \
|
libboost-thread-dev \
|
||||||
libdigest-sha-perl \
|
|
||||||
libevent-dev \
|
libevent-dev \
|
||||||
libminiupnpc-dev \
|
libminiupnpc-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libtool \
|
libtool \
|
||||||
libzmq3-dev \
|
libzmq3-dev \
|
||||||
libzmq5 \
|
libzmq5 \
|
||||||
perl \
|
|
||||||
pkg-config \
|
pkg-config \
|
||||||
&& \
|
&& \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
export HOME="/var/lib/bitcoind"
|
export HOME="/var/lib/bitcoind"
|
||||||
|
|
||||||
# gen random pw for rpc server
|
# gen random pw for rpc server
|
||||||
RANDOMPW=$(dd if=/dev/urandom bs=10 count=1 status=none | shasum | cut -b 1-20)
|
RANDOMPW=$(tr -dc 'a-f0-9' < /dev/urandom | head -c20)
|
||||||
|
|
||||||
cat <<EOF > $HOME/bitcoin.conf
|
cat <<EOF > $HOME/bitcoin.conf
|
||||||
rpcuser=${BITCOIND_RPCUSER:-rpcuser}
|
rpcuser=${BITCOIND_RPCUSER:-rpcuser}
|
||||||
|
|
Loading…
Reference in New Issue