#!/bin/bash

set -e

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remove" ]; then
  # Install new config files
  export UCF_FORCE_CONFFNEW=yes
  for FILE in apt/preferences.d/60debian-backports \
  apt/sources.list.d/debian-backports.list; do
    ucf /usr/share/pointlinux/etc/$FILE /etc/$FILE
  done
fi
