blob: 2e4501032861834e968fb376c7de16dbdbcae8fb [file] [log] [blame]
#!/bin/bash
# Copyright 2015 The Vanadium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
# Expects credentials in $TMPDIR/creds (where $TMPDIR defaults to /tmp),
# generated as follows:
#
# make build
# ./bin/principal seekblessings --v23.credentials tmp/creds
set -euo pipefail
TMPDIR=${TMPDIR-/tmp}
mkdir -p $TMPDIR
set -x
./bin/syncbased --root-dir=${TMPDIR}/syncbase --v23.tcp.address=localhost:8200 --v23.credentials=${TMPDIR}/creds --v23.permissions.literal='{"Admin":{"In":["..."]},"Write":{"In":["..."]},"Read":{"In":["..."]},"Resolve":{"In":["..."]},"Debug":{"In":["..."]}}' # --enable-sync=0