#!/bin/bash

set -eu

# Do not mark any of the templates as conffiles, we always want them
# to be overwritten.
for conffile in debian/*/DEBIAN/conffiles; do
  sed -i -e '/\/etc\/ngcp-config\/templates/d' "$conffile"
  if [ ! -s "$conffile" ]; then
    rm -f "$conffile"
  fi
done
