diff --git a/scripts/debian/postinst.in b/scripts/debian/postinst.in index 36451ecb..bdbb002c 100755 --- a/scripts/debian/postinst.in +++ b/scripts/debian/postinst.in @@ -18,7 +18,8 @@ chosen_driver= -echo "[POST-INSTALL] Disable all possible enabled 'falco' service:" +# Every time we call this script we want to stat from a clean state. +echo "[POST-INSTALL] Disable all possible 'falco' services:" systemctl --system stop 'falco-kmod.service' || true systemctl --system stop 'falco-bpf.service' || true systemctl --system stop 'falco-modern-bpf.service' || true @@ -64,7 +65,7 @@ if [ "$1" = "configure" ]; then 2>&1 >/dev/tty) case $CHOICE in 2) - # we don't want falcoctl enabled by defualt, we mask it + # we don't want falcoctl enabled, we mask it systemctl --system mask falcoctl-artifact-follow.service || true ;; esac diff --git a/scripts/rpm/postinstall.in b/scripts/rpm/postinstall.in index 490820b3..8a014013 100755 --- a/scripts/rpm/postinstall.in +++ b/scripts/rpm/postinstall.in @@ -17,6 +17,7 @@ chosen_driver= +# Every time we call this script we want to stat from a clean state. echo "[POST-INSTALL] Disable all possible enabled 'falco' service:" systemctl --system stop 'falco-kmod.service' || true systemctl --system stop 'falco-bpf.service' || true @@ -63,7 +64,7 @@ if [ $1 -eq 1 ]; then 2>&1 >/dev/tty) case $CHOICE in 2) - # we don't want falcoctl enabled by defualt, we mask it + # we don't want falcoctl enabled, we mask it systemctl --system mask falcoctl-artifact-follow.service || true ;; esac