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

View file

@ -14,7 +14,7 @@ case "$1" in
[ -L /usr/doc/nut ] && rm -f /usr/doc/nut
# do stop the daemon on remove
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)