Edit configuration stuff
This commit is contained in:
parent
e4317a8383
commit
0c79cf3e75
1 changed files with 15 additions and 6 deletions
|
@ -1,13 +1,22 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo "prune=$PRUNE" >> /btc.conf
|
||||||
|
echo "txindex=$TXINDEX" >> /btc.conf
|
||||||
|
echo "datadir=/data" >> /btc.conf
|
||||||
|
|
||||||
if [ $ENABLE_RPC == 1 ]
|
if [ $ENABLE_RPC == 1 ]
|
||||||
then
|
then
|
||||||
|
echo "server=1" >> /btc.conf
|
||||||
|
echo "rpcbind=0.0.0.0:8332" >> /btc.conf
|
||||||
if [ $ENABLE_AUTH == 1]
|
if [ $ENABLE_AUTH == 1]
|
||||||
then
|
then
|
||||||
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE -rpcallowip=0.0.0.0 -rpcuser="$USER" -rpcpassword="$PASS" -rpcbind=0.0.0.0:8332
|
echo "rpcuser=$USER" >> /btc.conf
|
||||||
else
|
echo "rpcpassword=$PASS" >> /btc.conf
|
||||||
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE -rpcallowip=0.0.0.0 -rpcbind=0.0.0.0:8332
|
|
||||||
fi
|
fi
|
||||||
else
|
fi
|
||||||
/app/bitcoind -datadir=/data -txindex=$TXINDEX -prune=$PRUNE
|
|
||||||
fi
|
echo ": : : /!\\ CONFIG WRITTEN /!\\ : : :"
|
||||||
|
cat /btc.conf
|
||||||
|
echo ": : : /!\\ END CONFIG /!\\ : : :"
|
||||||
|
|
||||||
|
/app/bitcoind -conf=/btc.conf
|
Loading…
Add table
Add a link
Reference in a new issue