summaryrefslogtreecommitdiff
path: root/src/hub/test-srv-geoip-anon
blob: 558dc946404210f6e253baa6be1c50cce4305efb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ -z "$1" ]; then
  echo "Usage: $0 <db-name> <geoip-db-file>"
  exit 1
fi

TEST_D="./test"
TEST_DB="$TEST_D/$1.bolt"
EXTRA_OPTS=""


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" -geoip-db $2 -anonymize