diskimage-builder/elements/dpkg/post-install.d/99-clean-up-cache

10 lines
157 B
Text
Raw Normal View History

#!/bin/bash
# Do an apt-get clean. This will free some space.
set -eu
set -o pipefail
if ! mount | grep /var/cache/apt/archives; then
apt-get clean
fi