Skip to content

Commit 98426f2

Browse files
Daniel Dunnguysoft
authored andcommitted
Also change example script
1 parent 7702202 commit 98426f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/variants/example/post_chroot_script

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ install_chroot_fail_on_error_trap
88
unpack /filesystem/root /
99

1010
#cleanup
11-
apt-get clean
11+
if [ -n "$BASE_APT_CACHE" ] && [ "$BASE_APT_CACHE" != "no" ]; then
12+
apt-get autoclean
13+
else
14+
apt-get clean
15+
fi

0 commit comments

Comments
 (0)