mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-13 14:09:30 -05:00
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:
parent
960e1ff6e8
commit
fbe9b60d95
8
debian/security-misc.preinst
vendored
8
debian/security-misc.preinst
vendored
@ -56,6 +56,8 @@ sudo_users_check () {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local sudo_users user_with_sudo are_there_any_sudo_users OLD_IFS
|
||||||
|
|
||||||
sudo_users="$(getent group sudo | cut -d: -f4)"
|
sudo_users="$(getent group sudo | cut -d: -f4)"
|
||||||
## example sudo_users:
|
## example sudo_users:
|
||||||
## user,root
|
## user,root
|
||||||
@ -101,6 +103,8 @@ console_users_check() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
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)"
|
console_users="$(getent group console | cut -d: -f4)"
|
||||||
## example console_users:
|
## example console_users:
|
||||||
## user
|
## user
|
||||||
@ -143,6 +147,8 @@ legacy() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local continue_yes user_to_be_created
|
||||||
|
|
||||||
if [ -f "/usr/share/whonix/marker" ]; then
|
if [ -f "/usr/share/whonix/marker" ]; then
|
||||||
continue_yes=true
|
continue_yes=true
|
||||||
fi
|
fi
|
||||||
@ -150,7 +156,7 @@ legacy() {
|
|||||||
continue_yes=true
|
continue_yes=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! "$continue_yes" = "yes" ]; then
|
if [ ! "$continue_yes" = "true" ]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user