summaryrefslogtreecommitdiffstats
path: root/tests/t-triggers-path/pkg-interest/DEBIAN/postinst
blob: 3968b80e83778029f482a76db4ea4c32932054b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

case "$1" in
  triggered)
    if [ -e "$DPKG_ROOT/test/trigger/test-file" ]; then
      touch "$DPKG_ROOT/test-triggered-file"
    else
      touch "$DPKG_ROOT/test-triggered-cmd"
    fi
  ;;
esac

exit 0