diff --git a/scripts/latecommand.tar.gz b/scripts/latecommand.tar.gz index 9cd600d..56b7630 100644 Binary files a/scripts/latecommand.tar.gz and b/scripts/latecommand.tar.gz differ diff --git a/scripts/latecommand/post.sh b/scripts/latecommand/post.sh index 1cb3b29..a36d927 100755 --- a/scripts/latecommand/post.sh +++ b/scripts/latecommand/post.sh @@ -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