docker-dogecoind/start
2019-05-05 18:15:45 -07:00

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