#!/bin/sh
# postinst script for #PACKAGE#

set -e


case "$1" in
    configure)
        cp -af /usr/share/big-crime-common-settings/etc/* /etc
	if [ -e /boot/grub/grub.cfg ] && which update-grub2 >/dev/null 2>&1
	then
	    update-grub
	fi
	if [ -f /etc/nala/nala.conf ]; then
	    sed -i 's/auto_remove = true/auto_remove = false/' /etc/nala/nala.conf
	fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0
