File: instance-crowdsec

package info (click to toggle)
crowdsec 1.4.6-10.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,500 kB
  • sloc: sh: 2,870; makefile: 386; python: 74
file content (16 lines) | stat: -rwxr-xr-x 370 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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}" "$@"