PREIN
/bin/sh
if [ "$1" = "1" ]; then /usr/sbin/groupadd -r -f mlocate elif [ "$1" = "2" ]; then if grep slocate /etc/group > /dev/null; then /usr/sbin/groupmod -n mlocate slocate fi fi
POSTIN
/bin/sh
# for %ghost: touch /var/lib/mlocate/mlocate.db