#!/bin/sh
# postinst script for chkboot

set -e

case "$1" in
    configure)
        # On upgrade
        if [ -n "$2" ]; then

            # For version <= 1.3-2
            if dpkg --compare-versions "$2" le "1.3-2"; then

                # Update permission to match package one.
                # See #192981
                if [ -x /etc/profile.d/chkboot-profilealert.sh ]; then
                    chmod 644 /etc/profile.d/chkboot-profilealert.sh
                fi

            fi

        fi
    ;;

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

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

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
