From 14ec9f3e63383adc7ff30b79ee0318bf1f53db2f Mon Sep 17 00:00:00 2001 From: bunkerity Date: Sun, 13 Sep 2020 17:05:10 +0200 Subject: [PATCH] logrotate and compile fixes --- compile.sh | 2 +- logs/logrotate.conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compile.sh b/compile.sh index d57acc8..6ba5e69 100644 --- a/compile.sh +++ b/compile.sh @@ -33,7 +33,7 @@ VERSION="1.18.0" wget https://nginx.org/download/nginx-${VERSION}.tar.gz tar -xvzf nginx-${VERSION}.tar.gz cd nginx-${VERSION} -./auto/configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx/nginx.pid --modules-path=/usr/lib/nginx/modules --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --add-module=/tmp/ModSecurity-nginx --add-module=/tmp/headers-more-nginx-module --add-module=/tmp/ngx_http_geoip2_module --add-module=/tmp/nginx_cookie_flag_module +./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/run/nginx/nginx.pid --modules-path=/usr/lib/nginx/modules --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --add-module=/tmp/ModSecurity-nginx --add-module=/tmp/headers-more-nginx-module --add-module=/tmp/ngx_http_geoip2_module --add-module=/tmp/nginx_cookie_flag_module make -j $NTASK make install strip /usr/sbin/nginx diff --git a/logs/logrotate.conf b/logs/logrotate.conf index cf5f28f..f5dcd52 100644 --- a/logs/logrotate.conf +++ b/logs/logrotate.conf @@ -7,6 +7,7 @@ # remove old logs after X days maxage %LOGROTATE_MAXAGE% + rotate %LOGROTATE_MAXAGE% # no errors if a file is missing missingok