[libdevice-modem-perl] 13/19: Remove logfile upon purge. Closes: #832348
Christoph Biedl
cbiedl at moszumanska.debian.org
Sat Nov 18 09:29:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
cbiedl pushed a commit to branch master
in repository libdevice-modem-perl.
commit ad23d4925248b130edaefd746dec6e8eefa8f16b
Author: Christoph Biedl <debian.axhn at manchmal.in-ulm.de>
Date: Wed Jun 29 18:14:59 2016 +0200
Remove logfile upon purge. Closes: #832348
---
debian/libdevice-modem-perl.postrm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/debian/libdevice-modem-perl.postrm b/debian/libdevice-modem-perl.postrm
new file mode 100644
index 0000000..c6f97b0
--- /dev/null
+++ b/debian/libdevice-modem-perl.postrm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+purge)
+ find /var/log/modem/ -type f -name 'modem.log*' -print0 | xargs -r0 rm
+ rmdir /var/log/modem/ 2>/dev/null || true
+ ;;
+remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+*)
+ echo "postrm called with unknown argument '$1'"
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdevice-modem-perl.git
More information about the Pkg-perl-cvs-commits
mailing list