diff --git a/deployment/bare_metal/install.sh b/deployment/bare_metal/install.sh index b7f06a1ff..4942ef791 100755 --- a/deployment/bare_metal/install.sh +++ b/deployment/bare_metal/install.sh @@ -74,10 +74,14 @@ sudo certbot > Would you be willing, once your first certificate is successfully issued, to > N > No names were found in your configuration files. Please enter in your domain > stage1.gradido.net +# 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 + # Webhooks (optional) (for development) sudo apt install webhook # TODO generate -# put hook into ithub +# put hook into github # TODO adjust secret # TODO adjust branch if needed # https://stage1.gradido.net/hooks/github diff --git a/deployment/bare_metal/logrotate/gradido.conf.template b/deployment/bare_metal/logrotate/gradido.conf.template new file mode 100644 index 000000000..c038f8e75 --- /dev/null +++ b/deployment/bare_metal/logrotate/gradido.conf.template @@ -0,0 +1,7 @@ +$GRADIDO_LOG_PATH/* { + weekly + rotate 26 + size 10M + compress + delaycompress +} \ No newline at end of file