network/nginx: Fixed logrotate script (added "su" directive)

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Robby Workman 2012-09-12 16:20:51 -05:00
parent 3fbf4b44f8
commit ad4431d8e7
3 changed files with 5 additions and 3 deletions

View file

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

View file

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

View file

@ -1,4 +1,5 @@
/var/log/nginx/*.log {
su @USER@ @GROUP@
rotate 10
notifempty
size=5M