Commit 7a6d5953 authored by Natanael Copa's avatar Natanael Copa

main/nginx: fix permissions of /var/tmp

Permissions of /var/tmp should be 1777. Due to limitation in apk/abuild
we need to explicitly set the permissions of intermediate directories
that should not have default.

ref #9364
parent e773ffa8
...@@ -11,7 +11,7 @@ pkgname=nginx ...@@ -11,7 +11,7 @@ pkgname=nginx
# NOTE: Upgrade only to even-numbered versions (e.g. 1.14.z, 1.16.z)! # NOTE: Upgrade only to even-numbered versions (e.g. 1.14.z, 1.16.z)!
# Odd-numbered versions are mainline (development) versions. # Odd-numbered versions are mainline (development) versions.
pkgver=1.14.0 pkgver=1.14.0
pkgrel=0 pkgrel=1
# Revision of nginx-tests to use for check(). # Revision of nginx-tests to use for check().
_tests_hgrev=d6daf03478ad _tests_hgrev=d6daf03478ad
_njs_ver=0.2.0 _njs_ver=0.2.0
...@@ -235,6 +235,7 @@ package() { ...@@ -235,6 +235,7 @@ package() {
install -dm755 ./etc/$pkgname/modules install -dm755 ./etc/$pkgname/modules
install -dm750 -o $pkgusers -g $_grp_ngx ./var/lib/$pkgname install -dm750 -o $pkgusers -g $_grp_ngx ./var/lib/$pkgname
install -dm700 -o $pkgusers -g $_grp_ngx ./var/tmp/$pkgname install -dm700 -o $pkgusers -g $_grp_ngx ./var/tmp/$pkgname
chmod 1777 "$pkgdir"/var/tmp
install -dm755 -g $_grp_www ./var/www/localhost/htdocs install -dm755 -g $_grp_www ./var/www/localhost/htdocs
install -dm755 ./var/log install -dm755 ./var/log
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment