From 1d902759cf33a4505b0de055eb3923a9c0991c12 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Fri, 6 Jul 2007 21:15:18 +0000 Subject: [PATCH] foo --- debian/preinst | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 debian/preinst diff --git a/debian/preinst b/debian/preinst new file mode 100755 index 0000000..513e294 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +# generate correct pid file, for versions where was non or incorrect +if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" <= "1.06-6"; then + ps aux | grep /usr/bin/ps-watcher | head -1 | awk '{ print $2 }' > /var/run/ps-watcher.pid +fi +#DEBHELPER#