diff options
author | Magnus Ahltorp <map@kth.se> | 2015-03-04 22:48:40 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-03-04 22:48:40 +0100 |
commit | a706e79fa722f681320fe1b05824352b6b9a63fc (patch) | |
tree | 41907841f09f19d93adfab91eb314bb0789851f9 /examples/docker-minimal/docker/merge.sh | |
parent | f800e5fae8f9579328477b3bc3e939d9f4369d32 (diff) | |
parent | e0f11a58033d52c70bc76b4b5611cb88485d4653 (diff) |
Merge branch 'extsign'
Diffstat (limited to 'examples/docker-minimal/docker/merge.sh')
-rwxr-xr-x | examples/docker-minimal/docker/merge.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/docker-minimal/docker/merge.sh b/examples/docker-minimal/docker/merge.sh new file mode 100755 index 0000000..93808c5 --- /dev/null +++ b/examples/docker-minimal/docker/merge.sh @@ -0,0 +1,26 @@ +#! /bin/sh + +S1=300; [ -n "$1" ] && S1=$1 +S2=1200; [ -n "$2" ] && S2=$2 + +[ -d mergedb ] && rm -rf mergedb +mkdir mergedb +mkdir mergedb/chains +touch mergedb/logorder + +date +echo "merge: waiting $(expr $S1 / 60)m$(expr $S1 % 60)s before merging for the first time" +sleep $S1 + +while true; do + echo "merge: merging" + date + tools/merge.py \ + --baseurl https://127.0.0.1:8080/ \ + --storage https://127.0.0.1:8081/ \ + --frontend https://127.0.0.1:8082/ \ + --mergedb mergedb \ + --keyfile examples/docker-minimal/docker/eckey.pem + echo "merge: waiting $(expr $S2 / 60)m$(expr $S2 % 60)s before merging again" + sleep $S2 +done |