This commit is contained in:
Jan Wagner 2007-07-06 21:15:18 +00:00
parent 7d8b6199ba
commit 1d902759cf

8
debian/preinst vendored Executable file
View file

@ -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#