d/kopano-common: remove /v/log/kopano on purging
The postinst of kopano-common is modifying the folder /var/log/kopano
while the configure run for kopano-common. The folder itself is getting
installed by the package itself.
If user is selecting the purging option while removing kopano-common we
can remove the complete folder with all subfolders to. This can be done
by the postrm script.
Carsten Schoenert
5 years ago
0 | #!/bin/sh | |
1 | # postrm script for kopano-common | |
2 | # | |
3 | # see: dh_installdeb(1) | |
4 | ||
5 | set -e | |
6 | ||
7 | LOGDIR=/var/log/kopano | |
8 | ||
9 | case "$1" in | |
10 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | |
11 | ;; | |
12 | ||
13 | purge) | |
14 | rm -rf ${LOGDIR} | |
15 | ;; | |
16 | ||
17 | *) | |
18 | echo "postrm called with unknown argument \`$1'" >&2 | |
19 | exit 1 | |
20 | ;; | |
21 | esac | |
22 | ||
23 | #DEBHELPER# | |
24 | ||
25 | exit 0 | |
26 |