mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 03:26:42 +00:00
fix(logrotate): add logrotate to Brewfile, improve logrotate-ex script
This commit is contained in:
1
Brewfile
1
Brewfile
@@ -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'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user