aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2020-10-19 12:01:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2020-10-19 12:01:44 +0000
commit0ec748acdd0a5b0869155802f105915ff8bb142b (patch)
tree048c3390886f08b929110e488f360ca41869193f
parentecaa3363157b609bd2eaf885142075205a380da3 (diff)
downloadaports-0ec748acdd0a5b0869155802f105915ff8bb142b.tar.gz
aports-0ec748acdd0a5b0869155802f105915ff8bb142b.tar.bz2
aports-0ec748acdd0a5b0869155802f105915ff8bb142b.tar.xz
main/nginx: fix ownership and permissions
ref #11968
-rw-r--r--main/nginx/APKBUILD4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/nginx/APKBUILD b/main/nginx/APKBUILD
index 5187f49095..1162b09452 100644
--- a/main/nginx/APKBUILD
+++ b/main/nginx/APKBUILD
@@ -21,7 +21,7 @@ pkgname=nginx
# NOTE: Upgrade only to even-numbered versions (e.g. 1.14.z, 1.16.z)!
# Odd-numbered versions are mainline (development) versions.
pkgver=1.18.0
-pkgrel=5
+pkgrel=6
# Revision of nginx-tests to use for check().
_tests_hgrev=4e0644119341
_njs_ver=0.4.4
@@ -282,6 +282,7 @@ package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
+ chown root:root "$pkgdir"/usr/sbin/nginx
# Disable some PaX protections; this is needed for Lua module.
local paxflags="-m"
@@ -313,6 +314,7 @@ package() {
install -dm755 ./var/log
mv ./var/lib/$pkgname/logs ./var/log/$pkgname
+ chown $pkgusers:$_grp_ngx var/log/$pkgname
ln -sf /$_modules_dir ./var/lib/$pkgname/modules
ln -sf /var/log/$pkgname ./var/lib/$pkgname/logs