diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2012-09-12 16:20:51 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-12 18:04:36 -0500 |
commit | ad4431d8e70dfe5afe046aa75153547492e2ac49 (patch) | |
tree | ab8bf6b3dbea9bfa914d55a0598badaa97cc607a /network | |
parent | 3fbf4b44f8348af1b08e11ae1133bd2e5a068ef6 (diff) |
network/nginx: Fixed logrotate script (added "su" directive)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r-- | network/nginx/nginx.SlackBuild | 5 | ||||
-rw-r--r-- | network/nginx/nginx.info | 2 | ||||
-rw-r--r-- | network/nginx/nginx.logrotate | 1 |
3 files changed, 5 insertions, 3 deletions
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 |