provide upgrade path for versions where no (correct) pidfile was written
This commit is contained in:
parent
6bb457582f
commit
1e0f3e9ca4
8
debian/prerm
vendored
Executable file
8
debian/prerm
vendored
Executable 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#
|
Loading…
Reference in a new issue