added recreate feature to skip all prompts and recreate installation configuration based on previsous selection in props.json

This commit is contained in:
jash
2018-10-08 16:20:34 +02:00
committed by kexkey
parent 886b2f7d8c
commit a7ccd08a2f
4 changed files with 24 additions and 8 deletions

View File

@@ -2,12 +2,16 @@
configure() {
local current_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
## build setup docker image
local recreate=""
if [[ $1 == 1 ]]; then
recreate="recreate"
fi
build_docker_image ../ cyphernodeconf && clear && echo "Thinking..."
# configure features of cyphernode
docker run -v $current_path/../data:/data \
--log-driver=none\
--rm -it cyphernodeconf:latest
#docker image rm cyphernodeconf:latest
--rm -it cyphernodeconf:latest $recreate
}