diff --git a/scripts/debian/postinst.in b/scripts/debian/postinst.in index 57a577af..cce12bd9 100755 --- a/scripts/debian/postinst.in +++ b/scripts/debian/postinst.in @@ -39,6 +39,7 @@ systemctl --system disable 'falcoctl-artifact-follow.service' || true systemctl --system unmask falcoctl-artifact-follow.service || true if [ "$1" = "configure" ]; then + # "auto" case is not managed here since it is already the default, so no CHOICE=2 case $FALCO_DRIVER_CHOICE in none) CHOICE=1 @@ -63,7 +64,7 @@ if [ "$1" = "configure" ]; then 5 "Modern eBPF" \ 2>&1 >/dev/tty) fi - # No need to manage automatic case since it is already the default + # "auto" case is not managed here since it is already the default, so no CHOICE=2 case $CHOICE in 1) chosen_driver="" diff --git a/scripts/rpm/postinstall.in b/scripts/rpm/postinstall.in index 2def0c5b..489f9083 100755 --- a/scripts/rpm/postinstall.in +++ b/scripts/rpm/postinstall.in @@ -38,6 +38,7 @@ systemctl --system disable 'falcoctl-artifact-follow.service' || true systemctl --system unmask falcoctl-artifact-follow.service || true if [ $1 -ge 1 ]; then + # "auto" case is not managed here since it is already the default, so no CHOICE=2 case $FALCO_DRIVER_CHOICE in none) CHOICE=1 @@ -62,7 +63,7 @@ if [ $1 -ge 1 ]; then 5 "Modern eBPF" \ 2>&1 >/dev/tty) fi - # No need to manage automatic case since it is already the default + # "auto" case is not managed here since it is already the default, so no CHOICE=2 case $CHOICE in 1) chosen_driver=""