#!/bin/sh
set -e
DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
[ -d "$DIR/data" ] || { echo "data/ missing (must be bundled with the package)"; exit 1; }
exec "$DIR/localauth-server" -datadir "$DIR/data" -webdir "$DIR/web"
