#!/bin/bash -e

case "$1" in
    configure)
        [ -d /var/spool/bem-local-libs ] || exit 1
        chown -R ppc:ppc /var/spool/bem-local-libs /var/log/sync-bem-local-libs
    ;;  
    
    abort-upgrade|abort-remove|abort-deconfigure)
    ;;
    
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;  
esac

exit 0
