File:  [Coherent Logic Development] / freem-mk-debian-package / debian / postrm
Revision 1.2: download - view: text, annotated - select for diffs
Fri Apr 4 02:47:52 2025 UTC (18 hours, 52 minutes ago) by snw
Branches: MAIN
CVS tags: HEAD
Prepare build scripts for 0.63.0

#!/bin/bash
. /usr/share/debconf/confmodule

db_input high freem/remove_userdata || false
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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>