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`
This commit is contained in:
Patrick Schleizer 2020-03-30 17:15:02 -04:00
parent bc22fc9fdb
commit f663b5eff8
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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