summaryrefslogtreecommitdiff
path: root/share/hooks/0130-remove-backup-files.chroot
blob: 6e0a6905546bb1f92a6be103146529cfd734a51e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

# Remove backup files
rm -f /boot/*.bak
rm -f /boot/*.old-dkms

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