Ensure to create olddir (/var/log/messages.d) for 'messages' log (see #12).

This commit is contained in:
Jeremy Gardais 2017-09-11 11:05:17 +02:00
parent 542fa4b286
commit e996af165d
3 changed files with 7 additions and 4 deletions

View File

@ -1,8 +1,11 @@
## Release 0.4.x
## Release 0.4.1
### Improvement
* Standard task is no longer install for Debian Stretch with preseed (see #14).
* Ensure to install `python-apt`|Ansible dependencie (see #14).
### Fix
* Ensure to create olddir (/var/log/messages.d) for 'messages' log.
## Release 0.4.0
### Features
* Delete the extra partition for free space with the Debian's preseed (#2).

Binary file not shown.

View File

@ -36,10 +36,10 @@ cp "${LOGROTATE_APTITUDE_CONF}" "${LOGROTATE_APTITUDE_FILE}"
cp "${LOGROTATE_DPKG_CONF}" "${LOGROTATE_DPKG_FILE}"
# Create an archive directory for some log files (aptitude, dpkg,…)
mkdir -p -- /var/log/old_logs /var/log/aptitude.d /var/log/dpkg /var/log/alternatives /var/log/syslog.d /var/log/cron /var/log/daemon /var/log/kern /var/log/lpr /var/log/mail /var/log/auth /var/log/messages
mkdir -p -- /var/log/old_logs /var/log/aptitude.d /var/log/dpkg /var/log/alternatives /var/log/syslog.d /var/log/cron /var/log/daemon /var/log/kern /var/log/lpr /var/log/mail /var/log/auth /var/log/messages.d
chmod 0750 /var/log/auth /var/log/daemon /var/log/kern /var/log/messages /var/log/syslog.d
chown root:adm /var/log/auth /var/log/daemon /var/log/kern /var/log/messages /var/log/syslog.d
chmod 0750 /var/log/auth /var/log/daemon /var/log/kern /var/log/messages.d /var/log/syslog.d
chown root:adm /var/log/auth /var/log/daemon /var/log/kern /var/log/messages.d /var/log/syslog.d
# Create the log directory for journald (Systemd), need the configuration Storage=(auto|persistent)
mkdir -p -- /var/log/journal