#!/usr/bin/bash
# SPDX-FileCopyrightText: 2022 Oxhead Alpha
# SPDX-License-Identifier: LicenseRef-MIT-OA

# Set the environment, including MAVRYK_NODE_DIR and calls the node command:
export $(cat $(systemctl show -p EnvironmentFiles mavryk-node-boreasnet.service | cut -d '=' -f2 | cut -d ' ' -f1 | tr '\n' ' ') | grep -v '^#' | xargs)
mavkit-node "$@"
