diff --git a/bin/logrotate-ex b/bin/logrotate-ex new file mode 100755 index 0000000..b57c426 --- /dev/null +++ b/bin/logrotate-ex @@ -0,0 +1,12 @@ +#! /bin/bash + +echo "$PATH" + +# Parse confx files and generate the conf files. +for file in $HOME/.logrotate.d/*.confx; do + content="$(eval "echo \"$(cat "$file")\"")" + echo "$content" > ${file/%.confx/.conf} +done + +# Run logrorate like normal against conf files. +logrotate ~/.logrotate.d/*.conf