#!/bin/sh

set -e

case "$1" in

    configure|reconfigure)

        if [ -x "/etc/init.d/dbus" ]; then
            if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d dbus force-reload || true
            else
                /etc/init.d/dbus force-reload || true
            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.


# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
	py3compile -p smart-notifier /usr/share/smart-notifier
fi
if command -v pypy3compile >/dev/null 2>&1; then
	pypy3compile -p smart-notifier /usr/share/smart-notifier || true
fi

# End automatically added section


exit 0
