From f663b5eff8a6f2fa406039ced4441c5a4a9c1477 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Mon, 30 Mar 2020 17:15:02 -0400 Subject: [PATCH] skip check if any non-root user is a member of group sudo and console if environment variable `SECURITY_MISC_INSTALL` is set to `force` --- debian/security-misc.preinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst index edf6ee9..e16996e 100644 --- a/debian/security-misc.preinst +++ b/debian/security-misc.preinst @@ -49,6 +49,9 @@ user_groups_modifications() { } sudo_users_check () { + if [ "$SECURITY_MISC_INSTALL" = "force" ]; then + return 0 + fi if test -f /var/lib/security-misc/skip_install_check ; then return 0 fi @@ -99,6 +102,9 @@ sudo_users_check () { } console_users_check() { + if [ "$SECURITY_MISC_INSTALL" = "force" ]; then + return 0 + fi if test -f /var/lib/security-misc/skip_install_check ; then return 0 fi