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