ps-watcher/debian/preinst
2012-03-29 17:31:24 +00:00

9 lines
232 B
Bash
Executable file

#!/bin/sh
set -e
# generate correct pid file, for versions where was non or incorrect
if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" le "1.06-6"; then
pidof ps-watcher > /var/run/ps-watcher.pid
fi
#DEBHELPER#