File: prerm

package info (click to toggle)
userv 1.2.0
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 700 kB
  • ctags: 1,013
  • sloc: ansic: 4,220; lex: 287; sh: 207; makefile: 206
file content (11 lines) | stat: -rw-r--r-- 223 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -e
if command -v invoke-rc.d >/dev/null 2>&1; then
	invoke-rc.d userv stop
else
	/etc/init.d/userv stop
fi

if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/userv ]; then
	rm -f /usr/doc/userv
fi