fix(security): LAPI-only engine boot, import via stdin, correct compose service
This commit is contained in:
1 parent
9562a75378
commit
7392b843ad
5 files changed
+24
-14
No files matched your search
@@ -79,7 +79,7 @@ container_running() {
|
||||
}
|
||||
|
||||
cscli_exec() {
|
||||
compose_cmd exec -T "$CONTAINER_NAME" cscli "$@"
|
||||
compose_cmd exec -T crowdsec cscli "$@"
|
||||
}
|
||||
|
||||
fetch_sources() {
|
||||
@@ -205,6 +205,6 @@ cscli_exec decisions delete --origin cscli-import >/dev/null 2>&1 || true
|
||||
} > "$work/import.csv"
|
||||
|
||||
printf 'Importing %s decisions into the local LAPI (duration %s)...\n' "$count_total" "$duration"
|
||||
cscli_exec decisions import -i "$work/import.csv" --format csv --batch 1000
|
||||
cscli_exec decisions import -i - --format csv --batch 1000 < "$work/import.csv"
|
||||
|
||||
printf 'Done. The app bouncer picks these up within a few seconds.\n'
|
||||
Reference in new issue
Block a user