Skip to content

Commit

Permalink
Add use of FALCO_DRIVER_CHOICE and FALCOCTL_ENABLED env vars
Browse files Browse the repository at this point in the history
Signed-off-by: Vicente J. Jiménez Miras <[email protected]>
  • Loading branch information
vjjmiras authored and poiana committed Dec 6, 2023
1 parent 10226a6 commit 13991f1
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/debian/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,25 @@ if [ "$1" = "configure" ]; then
esac
fi
clear
else
case $FALCO_DRIVER_CHOICE in
module | kmod )
chosen_driver="kmod"
;;
bpf | ebpf | eBPF )
chosen_driver="bpf"
;;
modern-bpf | modern-ebpf | modern-eBPF )
chosen_driver="modern-bpf"
;;
esac
case $FALCOCTL_ENABLED in
yes )
;;
no )
systemctl --system mask falcoctl-artifact-follow.service || true
;;
esac
fi
fi

Expand Down
19 changes: 19 additions & 0 deletions scripts/rpm/postinstall.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ if [ $1 -ge 1 ]; then
esac
fi
clear
else
case $FALCO_DRIVER_CHOICE in
module | kmod )
chosen_driver="kmod"
;;
bpf | ebpf | eBPF )
chosen_driver="bpf"
;;
modern-bpf | modern-ebpf | modern-eBPF )
chosen_driver="modern-bpf"
;;
esac
case $FALCOCTL_ENABLED in
yes )
;;
no )
systemctl --system mask falcoctl-artifact-follow.service || true
;;
esac
fi
fi

Expand Down

0 comments on commit 13991f1

Please sign in to comment.