Remove X11 support if unwanted

This commit is contained in:
Jeremy Gardais 2019-03-05 19:07:19 +01:00
parent 96d1db0a87
commit 01d861ad4e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 13 additions and 14 deletions

Binary file not shown.

View File

@ -36,20 +36,19 @@ aptitude -y install dbus libpam-systemd
aptitude -y remove nfs-common rpcbind
### Documentation {{{
# Remove task-french
if [ "$(dpkg -l task-french)" ]; then
# Move default wordlist to american before remove all packages
select-default-wordlist --set-default=american
aptitude -y remove task-french
# Reinstall useful french doc and move back to french dict
aptitude -y install aspell-fr doc-debian-fr doc-linux-fr-text ifrench-gut manpages-fr manpages-fr-extra wfrench
select-default-wordlist --set-default=".*(F|f)rench.*"
fi
# Remove task-english
if [ "$(dpkg -l task-english)" ]; then
aptitude -y remove task-english
# If no X display is expected
if [ ! "$(dpkg -l xorg)" ]; then
## Remove unwanted x11 lib
aptitude -y remove libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 xauth
if [ "$(dpkg -l task-english)" ]; then
## Remove task-english
aptitude -y remove task-english iamerican ibritish ienglish-common ispell util-linux-locales wamerican
fi
else
if [ "$(dpkg -l task-english)" ]; then
## Remove task-english
aptitude -y remove task-english
fi
fi
# Ensure to have minimal documentation