Annotation of freem-mk-debian-package/debian/postrm, revision 1.2

1.2     ! snw         1: #!/bin/bash
        !             2: . /usr/share/debconf/confmodule
1.1       snw         3: 
1.2     ! snw         4: db_input high freem/remove_userdata || false
        !             5: db_go
1.1       snw         6: 
1.2     ! snw         7: db_get freem/remove_userdata
        !             8: if [[ "$RET" == "true" ]]
        !             9: then
        !            10:     rm -rf /etc/freem /var/freem > /dev/null
        !            11: fi
        !            12: 
        !            13: db_get freem/users_for_group
        !            14: for FREEM_USER in $RET
        !            15: do
        !            16:     echo "Removing user ${FREEM_USER} from group 'freem'..."
        !            17:     usermod -rG freem ${FREEM_USER} &> /dev/null
        !            18: done
        !            19: 
        !            20: userdel freem &> /dev/null
        !            21: groupdel freem &> /dev/null
        !            22: 
        !            23: #DEBHELPER#
1.1       snw        24: exit 0

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