mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 06:46:40 +00:00
11 lines
295 B
Bash
Executable File
11 lines
295 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
# 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.
|
|
exec logrotate ~/.logrotate.d/*.conf
|