From ad4431d8e70dfe5afe046aa75153547492e2ac49 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 12 Sep 2012 16:20:51 -0500 Subject: network/nginx: Fixed logrotate script (added "su" directive) Signed-off-by: Robby Workman --- network/nginx/nginx.SlackBuild | 5 +++-- network/nginx/nginx.info | 2 +- network/nginx/nginx.logrotate | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'network') diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild index e6aff9516a2a8..44295d5ba9b61 100644 --- a/network/nginx/nginx.SlackBuild +++ b/network/nginx/nginx.SlackBuild @@ -26,7 +26,7 @@ PRGNAM=nginx VERSION=${VERSION:-1.2.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -127,7 +127,8 @@ mkdir -p $PKG/etc/rc.d cat $CWD/rc.nginx > $PKG/etc/rc.d/rc.nginx.new mkdir -p $PKG/etc/logrotate.d -cat $CWD/nginx.logrotate > $PKG/etc/logrotate.d/nginx.new +sed -e "s,@USER@,$NGINXUSER," -e "s,@GROUP@,$NGINXGROUP," $CWD/nginx.logrotate \ + > $PKG/etc/logrotate.d/nginx.new # Don't clobber config files for file in fastcgi_params fastcgi.conf mime.types nginx.conf \ diff --git a/network/nginx/nginx.info b/network/nginx/nginx.info index e9af6c5c568b9..e8f3b6cd70523 100644 --- a/network/nginx/nginx.info +++ b/network/nginx/nginx.info @@ -5,6 +5,6 @@ DOWNLOAD="http://nginx.org/download/nginx-1.2.2.tar.gz" MD5SUM="53105bbe3ac9319db54d9eb46119695b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="%README%" MAINTAINER="Francisco Ambrozio" EMAIL="developer@franciscoambrozio.com" diff --git a/network/nginx/nginx.logrotate b/network/nginx/nginx.logrotate index d4eb96a935d1b..626cebddba20e 100644 --- a/network/nginx/nginx.logrotate +++ b/network/nginx/nginx.logrotate @@ -1,4 +1,5 @@ /var/log/nginx/*.log { + su @USER@ @GROUP@ rotate 10 notifempty size=5M -- cgit v1.2.3