start 814 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
### configuration files will created or overwritten if exists
cat ${FAIRCHAINS_CONF} > scripts/fairchains.conf
cat ${FAIRCHAINS_CONF} | sed -e s/netname/\#\ netname/g > scripts/faircoin.conf
cat ${FAIRCOINCHAIN_JSON} > scripts/FairCoinChain.json
cat ${FAIRCOINCHAIN_ELECTRUMX_JSON} > scripts/FairCoinChain.electrumx.json
docker-compose stop --timeout 30
docker-compose up -d faircoin
docker-compose exec -T faircoin mv -f scripts/fairchains.conf .faircoin2/
docker-compose exec -T faircoin mv -f scripts/faircoin.conf .faircoin2/
docker-compose exec -T faircoin mv -f scripts/FairCoinChain.json .faircoin2/
docker-compose exec -T faircoin mv -f scripts/FairCoinChain.electrumx.json .faircoin2/
docker-compose exec -T faircoin ./faircoind -disablewallet -daemon
docker-compose up -d electrumfairchainsx