From d29411fe29b7f3f8151d72d4dad3f518080f00de Mon Sep 17 00:00:00 2001 From: Dan Anglin Date: Sun, 22 May 2022 10:57:33 +0100 Subject: [PATCH] fix(logrotate): install config using envsubst --- helpers/logrotate/generate-logrotate-config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers/logrotate/generate-logrotate-config b/helpers/logrotate/generate-logrotate-config index bf58629..bb4250f 100755 --- a/helpers/logrotate/generate-logrotate-config +++ b/helpers/logrotate/generate-logrotate-config @@ -11,4 +11,5 @@ if ! [ -d ${LF_DOTFILES_DESTINATION_DIR} ]; then mkdir ${LF_DOTFILES_DESTINATION_DIR} fi -rsync -avh ${LF_DOTFILES_SOURCE_DIR}/logrotate.conf ${LF_DOTFILES_DESTINATION_DIR}/logrotate.conf && chmod a-rwx,u+rw $_ +envsubst < ${LF_DOTFILES_SOURCE_DIR}/logrotate.conf > ${LF_DOTFILES_DESTINATION_DIR}/logrotate.conf +chmod a-rwx,u+rw ${LF_DOTFILES_DESTINATION_DIR}/logrotate.conf