version 1.1, 2025/04/03 01:57:47
|
version 1.2, 2025/04/04 02:47:52
|
Line 1
|
Line 1
|
#!/usr/bin/bash |
#!/bin/bash |
|
. /usr/share/debconf/confmodule |
|
|
userdel freem |
db_input high freem/remove_userdata || false |
groupdel freem |
db_go |
|
|
|
db_get freem/remove_userdata |
|
if [[ "$RET" == "true" ]] |
|
then |
|
rm -rf /etc/freem /var/freem > /dev/null |
|
fi |
|
|
|
db_get freem/users_for_group |
|
for FREEM_USER in $RET |
|
do |
|
echo "Removing user ${FREEM_USER} from group 'freem'..." |
|
usermod -rG freem ${FREEM_USER} &> /dev/null |
|
done |
|
|
|
userdel freem &> /dev/null |
|
groupdel freem &> /dev/null |
|
|
|
#DEBHELPER# |
exit 0 |
exit 0 |