Add *.update-* obsolete configs to dpkg plugin
This commit is contained in:
parent
a490924e3a
commit
679e15c484
|
@ -23,7 +23,7 @@ DEBIAN_VERSION="$( cat /etc/debian_version )"
|
||||||
TOTAL_PACKAGES=$( head --lines=1 <<<"${TMP_AWK}" )
|
TOTAL_PACKAGES=$( head --lines=1 <<<"${TMP_AWK}" )
|
||||||
UPGRADABLE_PACKAGES=( $( apt list --upgradable 2>/dev/null | grep -v '^Listing' | awk '{ gsub(/\]/,"",$NF); print $1 "[" $NF "<>" $2 "]" }' ) )
|
UPGRADABLE_PACKAGES=( $( apt list --upgradable 2>/dev/null | grep -v '^Listing' | awk '{ gsub(/\]/,"",$NF); print $1 "[" $NF "<>" $2 "]" }' ) )
|
||||||
INCONSISTENT_PACKAGES=( $( tail --lines=+2 <<<"${TMP_AWK}" ) )
|
INCONSISTENT_PACKAGES=( $( tail --lines=+2 <<<"${TMP_AWK}" ) )
|
||||||
OLD_CONFIG_FILES=( $( ionice -c3 find /etc -type f -a \( -name '*.dpkg-*' -o -name '*.ucf-*' \) 2>/dev/null ) )
|
OLD_CONFIG_FILES=( $( ionice -c3 find /etc -type f -a \( -name '*.dpkg-*' -o -name '*.ucf-*' -o -name '*.update-*' \) 2>/dev/null ) )
|
||||||
|
|
||||||
echo "<<<dpkg>>>"
|
echo "<<<dpkg>>>"
|
||||||
echo "debian_version ${DEBIAN_VERSION}"
|
echo "debian_version ${DEBIAN_VERSION}"
|
||||||
|
|
|
@ -16,5 +16,5 @@ apt autoremove --purge -y
|
||||||
apt clean
|
apt clean
|
||||||
|
|
||||||
# Phase 4 - find and remove obsolete config files
|
# Phase 4 - find and remove obsolete config files
|
||||||
OLD_FILES_LIST=( $( find /etc -type f -a \( -name '*.dpkg-*' -o -name '*.ucf-*' \) 2>/dev/null ) )
|
OLD_FILES_LIST=( $( find /etc -type f -a \( -name '*.dpkg-*' -o -name '*.ucf-*' -o -name '*.update-*' \) 2>/dev/null ) )
|
||||||
rm -f ${OLD_FILES_LIST[@]}
|
rm -f ${OLD_FILES_LIST[@]}
|
||||||
|
|
Loading…
Reference in New Issue