mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-24 05:47:42 +00:00
fix(docker): small fixes in docker entrypoints for new driver loader.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
e427c800f3
commit
f2ebdfaf8e
@ -60,7 +60,7 @@ while test $# -gt 0; do
|
||||
print_usage
|
||||
exit 1
|
||||
else
|
||||
/usr/bin/falcoctl driver config "--type $1"
|
||||
/usr/bin/falcoctl driver config --type $1
|
||||
has_driver="true"
|
||||
fi
|
||||
;;
|
||||
|
@ -60,7 +60,7 @@ while test $# -gt 0; do
|
||||
print_usage
|
||||
exit 1
|
||||
else
|
||||
/usr/bin/falcoctl driver config "--type $1"
|
||||
/usr/bin/falcoctl driver config --type $1
|
||||
has_driver="true"
|
||||
fi
|
||||
;;
|
||||
|
@ -60,14 +60,15 @@ if [[ -z "${SKIP_DRIVER_LOADER}" ]]; then
|
||||
has_driver=
|
||||
has_opts=
|
||||
for opt in "${falco_driver_loader_option_arr[@]}"
|
||||
case "$1" in
|
||||
do
|
||||
case "$opt" in
|
||||
kmod|ebpf)
|
||||
if [ -n "$has_driver" ]; then
|
||||
>&2 echo "Only one driver per invocation"
|
||||
print_usage
|
||||
exit 1
|
||||
else
|
||||
/usr/bin/falcoctl driver config "--type $opt"
|
||||
/usr/bin/falcoctl driver config --type $opt
|
||||
has_driver="true"
|
||||
fi
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user