summaryrefslogtreecommitdiff
path: root/network/nginx/nginx.SlackBuild
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-09-12 16:20:51 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-12 18:04:36 -0500
commitad4431d8e70dfe5afe046aa75153547492e2ac49 (patch)
treeab8bf6b3dbea9bfa914d55a0598badaa97cc607a /network/nginx/nginx.SlackBuild
parent3fbf4b44f8348af1b08e11ae1133bd2e5a068ef6 (diff)
downloadslackbuilds-ad4431d8e70dfe5afe046aa75153547492e2ac49.tar.gz
network/nginx: Fixed logrotate script (added "su" directive)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/nginx/nginx.SlackBuild')
-rw-r--r--network/nginx/nginx.SlackBuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/network/nginx/nginx.SlackBuild b/network/nginx/nginx.SlackBuild
index e6aff9516a..44295d5ba9 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 \