github.com/crowdsecurity/crowdsec@v1.6.1/test/enable-capi (about) 1 #!/bin/bash 2 3 # shellcheck disable=SC1007 4 THIS_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd) 5 # shellcheck disable=SC1091 6 . "${THIS_DIR}/.environment.sh" 7 8 online_api_credentials="$(dirname "${CONFIG_YAML}")/online_api_credentials.yaml" 9 export online_api_credentials 10 11 yq e '.api.server.online_client.credentials_path=strenv(online_api_credentials)' -i "${CONFIG_YAML}"