#!/bin/sh set -e if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt 4:25.2.1~rc1-3; then rm -f /etc/libreoffice/registry/postgresql.xcd ucf --purge /etc/libreoffice/registry/postgresql.xcd ucfr --force --purge libreoffice-sdbc-postgresql /etc/libreoffice/registry/postgresql.xcd elif [ "$1" = "install" ] && [ -f /etc/libreoffice/registry/postgresql.xcd ]; then rm -f /etc/libreoffice/registry/postgresql.xcd ucf --purge /etc/libreoffice/registry/postgresql.xcd ucfr --force --purge libreoffice-sdbc-postgresql /etc/libreoffice/registry/postgresql.xcd fi #DEBHELPER#