From 7be20755641a83a51c0d41820170966c931b5415 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 5 Nov 2012 10:18:18 +0100 Subject: use apt-config to get the /etc/apt/apt.conf.d dir --- debian/apt.auto-removal.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)" -- cgit v1.2.3