From af1ab144df5da46ecadf0e9a434d9c711f6ad778 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 11 Sep 2020 18:04:59 +0100 Subject: [PATCH] fix(logrotate): add logrotate to Brewfile, improve logrotate-ex script --- Brewfile | 1 + bin/logrotate-ex | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Brewfile b/Brewfile index 821df1e..d4ecfca 100644 --- a/Brewfile +++ b/Brewfile @@ -33,6 +33,7 @@ brew 'htop' brew 'httpie' brew 'jq' brew 'less' +brew 'logrotate' brew 'lua' brew 'luarocks' brew 'mas' diff --git a/bin/logrotate-ex b/bin/logrotate-ex index 687f62b..46c45b1 100755 --- a/bin/logrotate-ex +++ b/bin/logrotate-ex @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Parse confx files and generate the conf files. for file in $HOME/.logrotate.d/*.confx; do @@ -7,4 +7,4 @@ for file in $HOME/.logrotate.d/*.confx; do done # Run logrorate like normal against conf files. -logrotate ~/.logrotate.d/*.conf +exec logrotate ~/.logrotate.d/*.conf