#! /bin/sh
set -e

case "$1" in
    upgrade)
        # Dpkg gets confused when replacing symlinks with directories.
        [ ! -L /etc/prometheus/consoles ] || \
            rm /etc/prometheus/consoles
        [ ! -L /etc/prometheus/console_libraries ] || \
            rm /etc/prometheus/console_libraries
esac

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

#DEBHELPER#

exit 0

