extra/nginx to 1.10.3-2

This commit is contained in:
Kevin Mihelich 2017-02-10 13:25:30 +00:00
parent 2b11af9299
commit 2880403724
2 changed files with 9 additions and 2 deletions

View file

@ -10,7 +10,7 @@
pkgname=nginx
pkgver=1.10.3
pkgrel=1
pkgrel=2
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server'
arch=('i686' 'x86_64')
url='https://nginx.org'
@ -106,7 +106,7 @@ package() {
install -d "$pkgdir"/var/lib/nginx
install -dm700 "$pkgdir"/var/lib/nginx/proxy
chmod 750 "$pkgdir"/var/log/nginx
chmod 755 "$pkgdir"/var/log/nginx
chown root:root "$pkgdir"/var/log/nginx
install -d "$pkgdir"/usr/share/nginx

View file

@ -17,4 +17,11 @@ post_upgrade() {
if (( $(vercmp $2 1.10.2-3) < 0)); then
chown root:root var/log/nginx
fi
if (( $(vercmp $2 1.10.3-2) < 0 )); then
chmod 755 var/log/nginx
echo ':: Security notice:'
echo ' - When additional log directories are used in /var/log/nginx make sure they'
echo ' are owned by root:root and have 755 set as permission to mitigate CVE-2016-1247'
fi
}