mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
15 lines
258 B
Plaintext
15 lines
258 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
umask 077
|
||
|
|
||
|
basedir=~/.bitcoin
|
||
|
cfgfile="$basedir/bitcoin.conf"
|
||
|
|
||
|
[ -e "$basedir" ] || mkdir "$basedir"
|
||
|
|
||
|
[ -e "$cfgfile" ] || perl -le 'print"rpcpassword=",map{(a..z,A..Z,0..9)[rand 62]}0..9' > "$cfgfile"
|
||
|
|
||
|
exec /usr/lib/bitcoin/bitcoind "$@"
|