#!/bin/sh

set -e

if [ "$1" = "purge" ]; then
    if [ -e /usr/share/debconf/confmodule ]; then
        # Source debconf library.
        . /usr/share/debconf/confmodule
        # Remove my changes to the db.
        db_purge
    fi

    [ -d /etc/leonardo ] && rm -rf /etc/leonardo
    [ -d /usr/lib/leonardo ] && rm -rf /usr/lib/leonardo
    [ -d /var/lib/leonardo/static ] && rm -rf /var/lib/leonardo/static
fi

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

#DEBHELPER#

exit 0
