target="uri://fretlink/$3"
realm="$4"
- cd "$HOME/workdir/haskell-commons"
+ pushd "$HOME/workdir/haskell-commons" >/dev/null 2>/dev/null
MACAROON_PRIVATE_KEY="$secret" MACAROON_SECRET="$secret" stack exec macaroon-bakery -- $action --location "$target" --key-id "$src" $ttl "$realm"
+ popd 2>/dev/null >/dev/null
}
APP=$(basename $(pwd))
export MACAROON="$(build_macaroon --old $FL_NOTIFIER_PRIVATE_KEY notifier notifier external)"
# To push transporeon cargos to app
- APP_TRANSPOREON_PUSH_MACAROON="$(build_macaroon $FL_APP_SECRET notifier app app::transporeon-cargos-write)"
+ export TRANSPOREON_APP_PUSH_URL="http://localhost:8080/api/transporeon/cargo"
+ export TRANSPOREON_APP_PUSH_MACAROON="$(build_macaroon $FL_APP_SECRET notifier app app::transporeon-cargos-write)"
fi
if [ "$APP" = "pricer" ]; then