summaryrefslogtreecommitdiffstats
path: root/tests/t-conffile-divert-normal/pkg-conff-divert/DEBIAN/preinst
blob: bd85329d7c0d9002292d0cf9bf964978fd9ad0a0 (plain)
1
2
3
4
5
6
7
8
9
#!/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