chiark / gitweb /
changelog WIP
[userv.git] / debian / prerm
1 #!/bin/sh
2 set -e
3 if command -v invoke-rc.d >/dev/null 2>&1; then
4         invoke-rc.d userv stop
5 else
6         /etc/init.d/userv stop
7 fi
8
9 if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/userv ]; then
10         rm -f /usr/doc/userv
11 fi