if [ "$1" = install -o "$1" = upgrade ]; then
    dpkg-divert --package PACKAGE --rename --divert FILE.ubuntu-defaults --add FILE
fi
