crowdsec/test/instance-crowdsec
mmetc a19748ae35
Rename directory "tests" to "test" (#2094)
If you use a ./test/local directory, you need to create it again:
$ make clean bats-build bats-fixture
2023-03-03 15:54:49 +01:00

16 lines
370 B
Bash
Executable file

#!/usr/bin/env bash
#shellcheck disable=SC1007
THIS_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "${THIS_DIR}" || exit 1
# shellcheck disable=SC1091
. ./.environment.sh
backend_script="./lib/init/crowdsec-${INIT_BACKEND}"
if [[ ! -x "${backend_script}" ]]; then
echo "unknown init system '${INIT_BACKEND}'" >&2
exit 1
fi
exec "${backend_script}" "$@"