Commit 215bca3e authored by TonyFord's avatar TonyFord
Browse files

remove control.sh and replace with setenv.sh

parent 195598de
...@@ -37,13 +37,9 @@ If you want create an instance manual then follow the instructions. ...@@ -37,13 +37,9 @@ If you want create an instance manual then follow the instructions.
1. install docker and docker-compose ( https://docs.docker.com/compose/install/ ) 1. install docker and docker-compose ( https://docs.docker.com/compose/install/ )
1. clone this project 1. clone this project
1. change configuration in ./env 1. change configuration in ./env
1. run services by ./control.sh 1. initialize env vars ./setenv.sh
1. now you can run docker-compose commands
~~~ ~~~
chmod +x ./control.sh chmod +x ./setenv.sh
./control.sh build
./control.sh start
./control.sh stop
./control.sh uninstall
./control.sh remove
~~~ ~~~
#!/bin/bash
export RUNNER_UID=`id -u`
export RUNNER_GID=`id -g`
export `cat ./env/*`
case $1 in
"build")
docker-compose stop
docker-compose down
docker-compose build
;;
"start")
cat ${FAIRCHAINS_CONF} > ./fairchains.conf
docker-compose stop
docker-compose down
docker-compose up -d
;;
"stop")
docker-compose stop
;;
"uninstall")
docker-compose stop
docker-compose down
;;
"remove")
docker-compose stop
docker-compose down
# rm -R ~/.electrumfair #### dont use this command if you have some wallet.dat in your ~/.faircoin2 folder !!! In this case remove the block databases manually.
;;
esac
#!/bin/bash
export RUNNER_UID=`id -u`
export RUNNER_GID=`id -g`
export `cat ./env/*`
cat ${FAIRCHAINS_CONF} > ./fairchains.conf
alias D='docker-compose'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment