summaryrefslogtreecommitdiff
path: root/debian/apt.auto-removal.sh
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 10:18:18 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2012-11-05 10:18:18 +0100
commit7be20755641a83a51c0d41820170966c931b5415 (patch)
tree7b59681ab08422f50312a45d6e82223e1f0ae46f /debian/apt.auto-removal.sh
parentab02e4315eb422d404269d263c21270e1275d229 (diff)
use apt-config to get the /etc/apt/apt.conf.d dir
Diffstat (limited to 'debian/apt.auto-removal.sh')
-rw-r--r--debian/apt.auto-removal.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/apt.auto-removal.sh b/debian/apt.auto-removal.sh
index 8f6fc2efc..741183c41 100644
--- a/debian/apt.auto-removal.sh
+++ b/debian/apt.auto-removal.sh
@@ -17,7 +17,8 @@ set -e
# packages in the database because this runs from a postinst script, and apt
# will overwrite the db when it exits.
-config_file=/etc/apt/apt.conf.d/01autoremove-kernels
+eval $(apt-config shell APT_CONF_D Dir::Etc::parts/d)
+config_file=${APT_CONF_D}/01autoremove-kernels
installed_version="$1"
running_version="$(uname -r)"