File: preinst

package info (click to toggle)
ps-watcher 1.08-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: sh: 2,907; perl: 1,281; makefile: 104
file content (8 lines) | stat: -rwxr-xr-x 232 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
#!/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#