fix(logrotate): add logrotate to Brewfile, improve logrotate-ex script

This commit is contained in:
2020-09-11 18:04:59 +01:00
parent e4ab5f4ced
commit af1ab144df
2 changed files with 3 additions and 2 deletions

View File

@@ -33,6 +33,7 @@ brew 'htop'
brew 'httpie' brew 'httpie'
brew 'jq' brew 'jq'
brew 'less' brew 'less'
brew 'logrotate'
brew 'lua' brew 'lua'
brew 'luarocks' brew 'luarocks'
brew 'mas' brew 'mas'

View File

@@ -1,4 +1,4 @@
#! /bin/bash #! /usr/bin/env bash
# Parse confx files and generate the conf files. # Parse confx files and generate the conf files.
for file in $HOME/.logrotate.d/*.confx; do for file in $HOME/.logrotate.d/*.confx; do
@@ -7,4 +7,4 @@ for file in $HOME/.logrotate.d/*.confx; do
done done
# Run logrorate like normal against conf files. # Run logrorate like normal against conf files.
logrotate ~/.logrotate.d/*.conf exec logrotate ~/.logrotate.d/*.conf