Ensure to have aptitude available.

This commit is contained in:
Jeremy Gardais 2017-08-20 16:07:26 +02:00
parent 901c1e8f82
commit 02e19fdb25
1 changed files with 11 additions and 4 deletions

View File

@ -45,12 +45,17 @@ cp "${LOGROTATE_SYSLOG_CONF}" "${LOGROTATE_SYSLOG_FILE}"
cp "${LOGROTATE_APTITUDE_CONF}" "${LOGROTATE_APTITUDE_FILE}"
cp "${LOGROTATE_DPKG_CONF}" "${LOGROTATE_DPKG_FILE}"
# Create an archive directory for some log files (aptitude, dpkg, …)
# Create an archive directory for some log files (aptitude, dpkg,…)
mkdir -p -- /var/log/old_logs
# Create the log directory for journald (Systemd), need the configuration Storage=(auto|persistent)
mkdir -p -- /var/log/journal
# }}}
### }}}
## Packages {{{
BASE_PKG_INSTALL="aptitude tmux zsh"
apt -y install "${BASE_PKG_INSTALL}"
### NFS {{{
@ -58,7 +63,7 @@ mkdir -p -- /var/log/journal
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"
@ -68,6 +73,8 @@ 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