Remove content from "/var/lib/apt/lists/" with "find" instead of a wildcard

This commit is contained in:
Héctor Molinero Fernández 2020-06-11 19:23:32 +02:00
parent 6d4a3f5c45
commit 434d575dbe

View File

@ -85,9 +85,8 @@ build {
,
<<EOF
rm -f /etc/ssh/ssh_host_*key*
rm -f /etc/wireguard/*-*key
rm -f /etc/wireguard/*-iface
rm -rf /var/lib/apt/lists/*
rm -f /etc/wireguard/*-*key /etc/wireguard/*-iface
find /var/lib/apt/lists/ -mindepth 1 -delete
EOF
]
}