logrotate finish configuration

This commit is contained in:
Ulf Gebhardt 2022-01-17 11:18:00 +01:00
parent ad1436aecd
commit 1e372e697b
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -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