blob: 93f41ab0dd29deb7f49f19e0d4fb3b273330e782 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|