userlogrotate: rotate also php.log
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2780|4|2776|3|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/245//ansiblelint">Evolix » ansible-roles » unstable #245</a>
gitea/ansible-roles/pipeline/head This commit looks good
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2780|4|2776|3|:-1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/245//ansiblelint">Evolix » ansible-roles » unstable #245</a>
gitea/ansible-roles/pipeline/head This commit looks good
This commit is contained in:
parent
5c60fad29c
commit
9821fc8f78
|
@ -12,6 +12,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
|||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
* userlogrotate: rotate also php.log.
|
||||
|
||||
### Changed
|
||||
* evolinux-users: remove Stretch references in tasks that also apply to next Debian versions.
|
||||
|
|
|
@ -15,7 +15,7 @@ user_for() {
|
|||
stat -L -c '%G' $homedir
|
||||
}
|
||||
|
||||
for log in access.log access-*.log error.log; do
|
||||
for log in access.log access-*.log error.log php.log; do
|
||||
for i in $(ls -1 -d $HOMEPREFIX/*/log/$log 2>/dev/null | grep -v \.bak\.); do
|
||||
USER="$(user_for $i)"
|
||||
rotate $i root:$USER
|
||||
|
|
Loading…
Reference in a new issue