mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-24 18:15:32 +07:00
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:
parent
bc22fc9fdb
commit
f663b5eff8
6
debian/security-misc.preinst
vendored
6
debian/security-misc.preinst
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user