extra/nginx-mainline to 1.11.8-2

This commit is contained in:
Kevin Mihelich 2017-01-15 18:42:00 +00:00
parent a5a9fa5b4a
commit f22785fa1b
2 changed files with 5 additions and 21 deletions

View file

@ -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

View file

@ -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: