Manage to reinstall useful doc/manpages if task-french was installed (#10).

This commit is contained in:
Jeremy Gardais 2017-08-20 16:57:26 +02:00
parent 530e058488
commit fa36c470ad
2 changed files with 16 additions and 2 deletions

Binary file not shown.

View File

@ -59,8 +59,22 @@ apt -y install aptitude tmux zsh
# Remove NFS and rpcbind # Remove NFS and rpcbind
aptitude -y remove nfs-common rpcbind aptitude -y remove nfs-common rpcbind
### Remove tasksel ### Tasksel {{{
aptitude -y remove tasksel tasksel-data task-english task-french task-ssh-server laptop-detect
if [ "$(dpkg -l task-french)" ]; then
# Move default wordlist to american before remove all packages
select-default-wordlist --set-default=american
aptitude -y remove tasksel tasksel-data task-english task-french task-ssh-server laptop-detect
# 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.*"
else
aptitude -y remove tasksel tasksel-data task-english task-ssh-server laptop-detect
fi
### }}}
# Ensure to reinstall openssh-server # Ensure to reinstall openssh-server
aptitude -y install openssh-server openssh-sftp-server aptitude -y install openssh-server openssh-sftp-server