mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
extra/nginx to 1.10.3-2
This commit is contained in:
parent
2b11af9299
commit
2880403724
2 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue