fix(scripts): force rpm postinstall script to always show dialog, even on upgrade.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro 2023-02-03 15:17:30 +01:00 committed by poiana
parent 1b11a041b5
commit dcaf24164f

View File

@ -33,7 +33,7 @@ systemctl --system disable 'falcoctl-artifact-follow.service' || true
# unmask falcoctl if it was masked # unmask falcoctl if it was masked
systemctl --system unmask falcoctl-artifact-follow.service || true 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 [ -x /usr/bin/dialog ] && [ "${FALCO_FRONTEND}" != "noninteractive" ]; then
# If dialog is installed, create a dialog to let users choose the correct driver for them # 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 \ CHOICE=$(dialog --clear --title "Falco drivers" --menu "Choose your preferred driver:" 12 55 4 \