#!/bin/bash set -eu export LIBEUFIN_SANDBOX_ADMIN_PASSWORD=${LIBEUFIN_SANDBOX_ADMIN_PASSWORD:-admin} export LIBEUFIN_SANDBOX_DB_CONNECTION="jdbc:sqlite:/libeufin-data/libeufin.sqlite" libeufin-sandbox config --without-registrations --currency ${CURRENCY:-EUR} default if test -z $LIBEUFIN_EXPOSED_PORT; then echo ERROR: LIBEUFIN_EXPOSED_PORT is an empty string. exit 1 fi sed -i "s/localhost/localhost:$LIBEUFIN_EXPOSED_PORT/" /etc/libeufin/demobank-ui-settings.js service nginx start libeufin-sandbox serve --port 5016 --no-localhost-only