fix Whonix / Kicksecure

/var/lib/dpkg/tmp.ci/preinst: ERROR: No user is a member of group 'console'. Installation aborted.
/var/lib/dpkg/tmp.ci/preinst: ERROR: You probably want to run:

sudo adduser user console
This commit is contained in:
Patrick Schleizer 2020-01-20 08:49:02 -05:00
parent 960e1ff6e8
commit fbe9b60d95
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -56,6 +56,8 @@ sudo_users_check () {
return 0
fi
local sudo_users user_with_sudo are_there_any_sudo_users OLD_IFS
sudo_users="$(getent group sudo | cut -d: -f4)"
## example sudo_users:
## user,root
@ -101,6 +103,8 @@ console_users_check() {
return 0
fi
local console_users console_unrestricted_users user_with_console are_there_any_console_users OLD_IFS
console_users="$(getent group console | cut -d: -f4)"
## example console_users:
## user
@ -143,6 +147,8 @@ legacy() {
return 0
fi
local continue_yes user_to_be_created
if [ -f "/usr/share/whonix/marker" ]; then
continue_yes=true
fi
@ -150,7 +156,7 @@ legacy() {
continue_yes=true
fi
if [ ! "$continue_yes" = "yes" ]; then
if [ ! "$continue_yes" = "true" ]; then
return 0
fi