From 1e372e697bd60403942282f280246461f550038d Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Mon, 17 Jan 2022 11:18:00 +0100 Subject: [PATCH] logrotate finish configuration --- deployment/bare_metal/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/bare_metal/install.sh b/deployment/bare_metal/install.sh index 4942ef791..07fae471d 100755 --- a/deployment/bare_metal/install.sh +++ b/deployment/bare_metal/install.sh @@ -76,7 +76,8 @@ sudo certbot # Install logrotate # sudo apt-get install -y logrotate -sudo envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $SCRIPT_DIR/logrotate/gradido.conf.template > /etc/logrotate.d/gradido.conf +envsubst "$(env | sed -e 's/=.*//' -e 's/^/\$/g')" < $SCRIPT_DIR/logrotate/gradido.conf.template > $SCRIPT_DIR/logrotate/gradido.conf +sudo mv $SCRIPT_DIR/logrotate/gradido.conf /etc/logrotate.d/gradido.conf # Webhooks (optional) (for development) sudo apt install webhook