2021-10-22 15:22:10 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2020 Umbrel. https://getumbrel.com
|
2022-02-02 18:13:20 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021-2022 Citadel and contributors
|
2021-10-22 15:22:10 +00:00
|
|
|
# SPDX-FileCopyrightText: 2021 https://github.com/o3o3o
|
|
|
|
#
|
2022-01-21 20:37:48 +00:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2021-10-22 15:22:10 +00:00
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
CITADEL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"
|
|
|
|
|
|
|
|
result=$(docker compose \
|
|
|
|
--file "${CITADEL_ROOT}/docker-compose.yml" \
|
|
|
|
--env-file "${CITADEL_ROOT}/.env" \
|
2022-06-11 16:35:47 +00:00
|
|
|
exec lightning lncli "$@")
|
2021-10-22 15:22:10 +00:00
|
|
|
|
|
|
|
# We need to echo with quotes to preserve output formatting
|
|
|
|
echo "$result"
|