From dcaf24164f4412baaf3bb1fca3584fb76e986696 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Fri, 3 Feb 2023 15:17:30 +0100 Subject: [PATCH] fix(scripts): force rpm postinstall script to always show dialog, even on upgrade. Signed-off-by: Federico Di Pierro --- scripts/rpm/postinstall.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rpm/postinstall.in b/scripts/rpm/postinstall.in index 48974381..bf1303c5 100755 --- a/scripts/rpm/postinstall.in +++ b/scripts/rpm/postinstall.in @@ -33,7 +33,7 @@ systemctl --system disable 'falcoctl-artifact-follow.service' || true # unmask falcoctl if it was masked systemctl --system unmask falcoctl-artifact-follow.service || true -if [ $1 -eq 1 ]; then +if [ $1 -ge 1 ]; then if [ -x /usr/bin/dialog ] && [ "${FALCO_FRONTEND}" != "noninteractive" ]; then # If dialog is installed, create a dialog to let users choose the correct driver for them CHOICE=$(dialog --clear --title "Falco drivers" --menu "Choose your preferred driver:" 12 55 4 \