docker-dogecoind/start

13 lines
315 B
Plaintext
Raw Normal View History

2019-04-27 16:44:15 -07:00
#!/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
chown -R crypto:crypto /home/crypto/dogecoin/
exec sudo -Hu crypto dogecoind -conf=$CONFPATH