File: postrm

package info (click to toggle)
wmweather 2.4.7-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 492 kB
  • sloc: ansic: 1,544; sh: 322; makefile: 93
file content (20 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

if [ -x "$(which update-desktop-database 2> /dev/null)" ]
then
    update-desktop-database -q
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