diff options
Diffstat (limited to 'tests/t-triggers-path/pkg-interest/DEBIAN/postinst')
-rwxr-xr-x | tests/t-triggers-path/pkg-interest/DEBIAN/postinst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/t-triggers-path/pkg-interest/DEBIAN/postinst b/tests/t-triggers-path/pkg-interest/DEBIAN/postinst new file mode 100755 index 0000000..3968b80 --- /dev/null +++ b/tests/t-triggers-path/pkg-interest/DEBIAN/postinst @@ -0,0 +1,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 |