switch from prerm to postinst
This commit is contained in:
parent
3a2ebd01ea
commit
a568ceff91
2 changed files with 1 additions and 1 deletions
8
debian/preinst
vendored
Executable file
8
debian/preinst
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.12-1"; then
|
||||
ps aux | grep /usr/bin/dns-flood-detector | head -1 | awk '{ print $2 }' > /var/run/dns-flood-detector.pid
|
||||
fi
|
||||
#DEBHELPER#
|
Loading…
Add table
Add a link
Reference in a new issue