From a189319b43604293e5713aa27bbc9611242ac466 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 19 Dec 2012 05:56:58 +0100 Subject: Renumbering hooks. --- share/hooks/0110-remove-backup-files.chroot | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 share/hooks/0110-remove-backup-files.chroot (limited to 'share/hooks/0110-remove-backup-files.chroot') diff --git a/share/hooks/0110-remove-backup-files.chroot b/share/hooks/0110-remove-backup-files.chroot new file mode 100755 index 000000000..55a6b75af --- /dev/null +++ b/share/hooks/0110-remove-backup-files.chroot @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +# Remove backup files +rm -f /boot/*.bak +rm -f /boot/*.old-dkms + +rm -f /etc/apt/sources.list~ +rm -f /etc/apt/trusted.gpg~ + +rm -f /etc/passwd- +rm -f /etc/group- +rm -f /etc/shadow- +rm -f /etc/gshadow- + +rm -f /var/cache/debconf/*-old +rm -f /var/lib/dpkg/*-old -- cgit v1.2.3