Ensure to have systemd basic packages

Such as dbus and libpam-systemd.
Also ensure to purge useless configuration files.
This commit is contained in:
Jeremy Gardais 2018-02-15 19:03:12 +01:00
parent 8b38c181d3
commit 1585e6f84e
2 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -29,6 +29,9 @@ apt -y full-upgrade
# Ensure to have some basic packages
apt -y install aptitude tmux zsh
# Ensure to have some systemd basic packages
aptitude -y install dbus libpam-systemd
# Remove NFS and rpcbind
aptitude -y remove nfs-common rpcbind
@ -70,10 +73,13 @@ aptitude -y install python-apt
### Tasksel {{{
# If tasksel and tasksel-data are the only task* relative packages
if [ "$(dpkg -l | grep task | wc -l)" -eq "2" ]; then
if [ "$(dpkg -l | grep -c task)" -eq "2" ]; then
aptitude -y remove tasksel tasksel-data
fi
# purge configuration files
aptitude -y purge '~c'
### }}}
## }}}