12 lines
269 B
Bash
Executable File
12 lines
269 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CONFPATH=/home/crypto/dogecoin.conf
|
|
RPCUSER=${RPCUSER:-bobby}
|
|
RPCPASS=${RPCPASS:-propane}
|
|
|
|
sed -i -E "s/rpcuser=.+$/rpcuser=$RPCUSER/" $CONFPATH
|
|
sed -i -E "s/rpcpassword=.+$/rpcpassword=$RPCPASS/" $CONFPATH
|
|
|
|
exec sudo -Hu crypto dogecoind -conf=$CONFPATH
|
|
|