#!/bin/sh set -e if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then dpkg-divert --rename --divert /test-other --add /test-file fi