diff options
author | Christian Pointner <equinox@spreadspace.org> | 2017-05-11 01:40:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2017-05-11 01:40:11 +0200 |
commit | 8e43db07ace346e2fc4b9644e9c17a6e0739d670 (patch) | |
tree | bb74f0701be3fcb9dd1796e501a84a676dc6fd60 /src/hub/test-srv-anon | |
parent | added support IP address anonymization (diff) |
fix previous commit
Diffstat (limited to 'src/hub/test-srv-anon')
-rwxr-xr-x | src/hub/test-srv-anon | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/hub/test-srv-anon b/src/hub/test-srv-anon new file mode 100755 index 0000000..93f41ab --- /dev/null +++ b/src/hub/test-srv-anon @@ -0,0 +1,19 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo "Usage: $0 <db-name> [ <key-file> ]" + exit 1 +fi + +TEST_D="./test" +TEST_DB="$TEST_D/$1.bolt" +EXTRA_OPTS="" + + +if [ -n "$2" ]; then + EXTRA_OPTS="$EXTRA_OPTS -anonymization-key-file $2" +fi + +mkdir -p "$TEST_D" +rm -f "$TEST_D/pipe" "$TEST_D/pipegram" +exec ./bin/sfive-hub -db "$TEST_DB" -start-pipe-server -pipe "$TEST_D/pipe" -start-pipegram-server -pipegram "$TEST_D/pipegram" -start-web-server -web ":8000" -anonymize $EXTRA_OPTS |