debian/nut-server.prerm: Remove /var/run/nut during removal

This commit is contained in:
Laurent Bigonville 2011-07-15 15:32:31 +02:00
parent dfa7599f33
commit 1e45c0d270
2 changed files with 3 additions and 2 deletions

3
debian/changelog vendored
View file

@ -16,8 +16,9 @@ nut (2.6.1-2) UNRELEASED; urgency=low
- Set nut-powerman-pdu priority to extras - Set nut-powerman-pdu priority to extras
- Add nut-monitor package - Add nut-monitor package
- Add nut-doc package and add required C/R/P - Add nut-doc package and add required C/R/P
* debian/nut-server.prerm: Remove /var/run/nut during removal
-- Laurent Bigonville <bigon@debian.org> Fri, 15 Jul 2011 14:59:36 +0200 -- Laurent Bigonville <bigon@debian.org> Fri, 15 Jul 2011 15:31:30 +0200
nut (2.6.1-1) unstable; urgency=low nut (2.6.1-1) unstable; urgency=low

View file

@ -14,7 +14,7 @@ case "$1" in
[ -L /usr/doc/nut ] && rm -f /usr/doc/nut [ -L /usr/doc/nut ] && rm -f /usr/doc/nut
# do stop the daemon on remove # do stop the daemon on remove
invoke-rc.d nut stop && sleep 1 invoke-rc.d nut stop && sleep 1
[ -d /var/run/nut ] && rm -f /var/run/nut/*.pid [ -d /var/run/nut ] && rm -rf /var/run/nut/
;; ;;
upgrade) upgrade)