Created
March 9, 2018 04:05
-
-
Save mrTimofey/c5264f65524ef871ff4d0685919e61e5 to your computer and use it in GitHub Desktop.
Logrotate all Laravel projects in /var/www
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/*/storage/logs/*.log { | |
rotate 14 | |
daily | |
compress | |
maxage 14 | |
notifempty | |
create 644 www-data www-data | |
su www-data www-data | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment