1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-08 16:17:20 +00:00

The --cleanup option also uses an apt autoremove command.

This commit is contained in:
Pavel Mironchik 2019-05-17 13:13:23 +06:00
parent 28481a5161
commit 2ac6d4aa78
2 changed files with 13 additions and 8 deletions

View file

@ -574,6 +574,11 @@ then
fi
fi
done
if test -n "${DO_APT_REMOVE}"
then
printf '### REMOVING NO LONGER REQUIRED PACKAGES ###\n'
DEBIAN_FRONTEND=noninteractive apt autoremove -y
fi
if test -n "${UNNEEDED_APT_PACKAGES}"
then
printf '### REMOVING UNNEEDED APT PACKAGES ###\n'