Manage to reinstall useful doc/manpages if task-french was installed (#10).
This commit is contained in:
parent
530e058488
commit
fa36c470ad
Binary file not shown.
|
@ -59,8 +59,22 @@ apt -y install aptitude tmux zsh
|
|||
# Remove NFS and rpcbind
|
||||
aptitude -y remove nfs-common rpcbind
|
||||
|
||||
### Remove tasksel
|
||||
aptitude -y remove tasksel tasksel-data task-english task-french task-ssh-server laptop-detect
|
||||
### Tasksel {{{
|
||||
|
||||
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
|
||||
aptitude -y install openssh-server openssh-sftp-server
|
||||
|
|
Loading…
Reference in New Issue