File: postrm

package info (click to toggle)
wmweather 2.4.5-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 516 kB
  • ctags: 114
  • sloc: ansic: 1,543; sh: 315; makefile: 93
file content (17 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ "$1" = remove ] && [ -x /usr/bin/update-menus ]; then
	update-menus
fi

if [ "$1" = purge ]; then
	rm -f /etc/wmweather.conf
	if [ -e /usr/share/debconf/confmodule ]; then
		. /usr/share/debconf/confmodule
		db_purge
	fi
fi

exit 0