diff --git a/scripts/latecommand/post.sh b/scripts/latecommand/post.sh index ee4c6d2..74a8947 100755 --- a/scripts/latecommand/post.sh +++ b/scripts/latecommand/post.sh @@ -35,8 +35,7 @@ rm -f /var/log/daemon.log /var/log/syslog /var/log/messages # Restart Rsyslog service /etc/init.d/rsyslog restart - -### Logrotate ### +### Logrotate {{{ # Install new Logrotate configuration if [ -f "${LOGROTATE_FILE}" ]; then @@ -51,11 +50,24 @@ mkdir -p -- /var/log/old_logs # Create the log directory for journald (Systemd), need the configuration Storage=(auto|persistent) mkdir -p -- /var/log/journal +# }}} - -### NFS ### +### NFS {{{ # Remove NFS and rpcbind NFS_PKG_REMOVE="nfs-common rpcbind" aptitude -y remove "${NFS_PKG_REMOVE}" +# }}} + +### Tasksel {{{ +TASKSEL_PKG_REMOVE="tasksel tasksel-data task-english task-french task-ssh-server laptop-detect" + +aptitude -y remove "${TASKSEL_PKG_REMOVE}" + +# Ensure to reinstall openssh-server +SSH_PKG_INSTALL="openssh-server openssh-sftp-server" +aptitude -y install "${SSH_PKG_INSTALL}" +# }}} + +exit 0