From f22785fa1b63fa371bc5c40e701e7b9c3e8bec7b Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sun, 15 Jan 2017 18:42:00 +0000 Subject: [PATCH] extra/nginx-mainline to 1.11.8-2 --- extra/nginx-mainline/PKGBUILD | 4 ++-- extra/nginx-mainline/nginx.install | 22 +++------------------- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/extra/nginx-mainline/PKGBUILD b/extra/nginx-mainline/PKGBUILD index 2d6dbff2d..e59acc8bb 100644 --- a/extra/nginx-mainline/PKGBUILD +++ b/extra/nginx-mainline/PKGBUILD @@ -8,7 +8,7 @@ pkgname=nginx-mainline pkgver=1.11.8 -pkgrel=1 +pkgrel=2 pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, mainline release' arch=('i686' 'x86_64') url='https://nginx.org' @@ -108,7 +108,7 @@ package() { install -dm700 "$pkgdir"/var/lib/nginx/proxy chmod 750 "$pkgdir"/var/log/nginx - chown http:log "$pkgdir"/var/log/nginx + chown root:root "$pkgdir"/var/log/nginx install -d "$pkgdir"/usr/share/nginx mv "$pkgdir"/etc/nginx/html/ "$pkgdir"/usr/share/nginx diff --git a/extra/nginx-mainline/nginx.install b/extra/nginx-mainline/nginx.install index 7c4adf14b..27a860df6 100644 --- a/extra/nginx-mainline/nginx.install +++ b/extra/nginx-mainline/nginx.install @@ -1,21 +1,5 @@ post_upgrade() { - if (( $(vercmp $2 1.2.7-4) <= 0 )); then - chmod 750 var/log/nginx - chown http:log var/log/nginx - fi - if (( $(vercmp $2 1.2.1-2) <= 0 )); then - echo ' >>> Since 1.2.1-2 several changes has been made in package:' - echo ' - *.conf files have been moved to /etc/nginx' - echo ' - /etc/conf.d/nginx has been removed' - echo ' Main configuration file is set to /etc/nginx/nginx.conf' - echo ' - access.log and error.log can be found in /var/log/nginx by default' - echo ' - bundled *.html files have been moved to /usr/share/nginx/html' - echo ' - /etc/nginx/{html,logs} symbolic links and *.default files have been removed' - fi - if (( $(vercmp $2 1.4.2-4) < 0 )); then - echo 'Nginx now includes only upstream bundled modules.' - echo 'Thus, passenger module support was dropped.' - fi + if (( $(vercmp $2 1.11.8-2) < 0)); then + chown root:root var/log/nginx + fi } - -# vim:set ts=4 sw=4 et: