github.com/crowdsecurity/crowdsec@v1.6.1/test/instance-crowdsec (about) 1 #!/usr/bin/env bash 2 3 #shellcheck disable=SC1007 4 THIS_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) 5 cd "${THIS_DIR}" || exit 1 6 # shellcheck disable=SC1091 7 . ./.environment.sh 8 9 backend_script="./lib/init/crowdsec-${INIT_BACKEND}" 10 11 if [[ ! -x "${backend_script}" ]]; then 12 echo "unknown init system '${INIT_BACKEND}'" >&2 13 exit 1 14 fi 15 16 exec "${backend_script}" "$@"