#!/bin/sh set -e if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then dpkg-divert --package pkg-conff-divert --rename \ --divert /test-conffile.diverted --add /test-conffile fi