Diff for /freem-mk-debian-package/debian/postrm between versions 1.1 and 1.2

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

Removed from v.1.1  
changed lines
  Added in v.1.2


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