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]
|
## [Unreleased]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
* userlogrotate: rotate also php.log.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* evolinux-users: remove Stretch references in tasks that also apply to next Debian versions.
|
* 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
|
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
|
for i in $(ls -1 -d $HOMEPREFIX/*/log/$log 2>/dev/null | grep -v \.bak\.); do
|
||||||
USER="$(user_for $i)"
|
USER="$(user_for $i)"
|
||||||
rotate $i root:$USER
|
rotate $i root:$USER
|
||||||
|
@ -55,4 +55,4 @@ for log in production.log*[!\.gz] delayed_job.log*[!\.gz] development.log*[!\.gz
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue