diff options
author | Guillem Jover <guillem@debian.org> | 2017-09-24 20:57:22 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2017-09-24 21:03:11 +0200 |
commit | f310046425d3527cfad39072216373f34af9ca31 (patch) | |
tree | 8ddbbc339bf38479821a47cbb8584bbfaa4fb043 /debian/dpkg.postrm | |
parent | b7507002eeac63c580e8ea9d8c8e1e9071733150 (diff) | |
download | dpkg-f310046425d3527cfad39072216373f34af9ca31.tar.gz |
debian: Remove alternative logs when purging dpkg (!?)
Diffstat (limited to 'debian/dpkg.postrm')
-rwxr-xr-x | debian/dpkg.postrm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/dpkg.postrm b/debian/dpkg.postrm index 9b0234b1c..8fe5a642a 100755 --- a/debian/dpkg.postrm +++ b/debian/dpkg.postrm @@ -5,7 +5,10 @@ set -e # Remove log file when dpkg is purged remove_logfile() { - rm -f /var/log/dpkg.log /var/log/dpkg.log.* 2>/dev/null + logdir=/var/log + + rm -f $logdir/dpkg.log $logdir/dpkg.log.* 2>/dev/null + rm -f $logdir/alternatives.log $logdir/alternatives.log.* 2>/dev/null } case "$1" in |