apache: logrotate replacement is more subtle/precise
It replaces only the proper directive and not every occurence of the word.
This commit is contained in:
parent
d09fd169b3
commit
bb956fb5e7
|
@ -44,6 +44,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* kvm-host: install kvm-tools package instead of copying add-vm.sh
|
* kvm-host: install kvm-tools package instead of copying add-vm.sh
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
* apache: logrotate replacement is more subtle/precise. It replaces only the proper directive and not every occurence of the word.
|
||||||
* bind: chroot-bind.sh must not be executed in check mode
|
* bind: chroot-bind.sh must not be executed in check mode
|
||||||
* evoacme: fix module detection in apache config
|
* evoacme: fix module detection in apache config
|
||||||
* fail2ban: fix fail2ban_ignore_ips definition
|
* fail2ban: fix fail2ban_ignore_ips definition
|
||||||
|
|
|
@ -174,8 +174,8 @@
|
||||||
- name: "logrotate: keep 52 files"
|
- name: "logrotate: keep 52 files"
|
||||||
replace:
|
replace:
|
||||||
dest: /etc/logrotate.d/apache2
|
dest: /etc/logrotate.d/apache2
|
||||||
regexp: "rotate .+"
|
regexp: '^(\s+rotate) \d+$'
|
||||||
replace: "rotate 52"
|
replace: '\1 52'
|
||||||
tags:
|
tags:
|
||||||
- apache
|
- apache
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue