github.com/crowdsecurity/crowdsec@v1.6.1/test/instance-data (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/config/config-${CONFIG_BACKEND}"
    10  
    11  if [[ ! -x "${backend_script}" ]]; then
    12      echo "unknown config backend '${CONFIG_BACKEND}'" >&2
    13      exit 1
    14  fi
    15  
    16  exec "${backend_script}" "$@"