mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-02 06:02:36 -04:00
refactoring
This commit is contained in:
parent
0f65b2e85c
commit
b4265195f4
1 changed files with 8 additions and 1 deletions
9
debian/security-misc.preinst
vendored
9
debian/security-misc.preinst
vendored
|
@ -15,7 +15,7 @@ true "
|
||||||
#####################################################################
|
#####################################################################
|
||||||
"
|
"
|
||||||
|
|
||||||
if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
|
sudo_users_check () {
|
||||||
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
|
||||||
|
@ -52,7 +52,9 @@ if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
|
||||||
echo "https://www.whonix.org/wiki/security-misc#install" >&2
|
echo "https://www.whonix.org/wiki/security-misc#install" >&2
|
||||||
exit 200
|
exit 200
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
console_users_check() {
|
||||||
console_users="$(getent group console | cut -d: -f4)"
|
console_users="$(getent group console | cut -d: -f4)"
|
||||||
## example sudo_users:
|
## example sudo_users:
|
||||||
## user
|
## user
|
||||||
|
@ -89,6 +91,11 @@ if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
|
||||||
echo "https://www.whonix.org/wiki/security-misc#install" >&2
|
echo "https://www.whonix.org/wiki/security-misc#install" >&2
|
||||||
exit 201
|
exit 201
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
|
||||||
|
sudo_users_check
|
||||||
|
console_users_check
|
||||||
fi
|
fi
|
||||||
|
|
||||||
true "INFO: debhelper beginning here."
|
true "INFO: debhelper beginning here."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue