mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
* bats: lock/unlock instance data; replace openssl w/ cfssl; update dep list * concat pem without openssl :-/ * unused/unreachable code * lint * redundant {} (shellharden)
16 lines
371 B
Bash
Executable file
16 lines
371 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/config/config-${CONFIG_BACKEND}"
|
|
|
|
if [[ ! -x "$backend_script" ]]; then
|
|
echo "unknown config backend '${CONFIG_BACKEND}'" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec "$backend_script" "$@"
|