citadel-core/events/triggers/app
2021-10-22 16:56:27 +01:00

14 lines
310 B
Bash
Executable File

#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2021 Citadel and contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later
CITADEL_ROOT="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/../..)"
signal="${1}"
command=${signal%%"-"*}
app=${signal#*"-"}
"${CITADEL_ROOT}/app/app-manager.py" "${command}" "${app}"