mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/nginx to 1.10.2-3
This commit is contained in:
parent
f22785fa1b
commit
9a872895f8
2 changed files with 20 additions and 21 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
pkgname=nginx
|
||||
pkgver=1.10.2
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server'
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://nginx.org'
|
||||
|
@ -107,7 +107,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
|
||||
|
|
|
@ -1,21 +1,20 @@
|
|||
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.2.7-4) <= 0 )); then
|
||||
chmod 750 var/log/nginx
|
||||
chown http:log var/log/nginx
|
||||
fi
|
||||
|
||||
# vim:set ts=4 sw=4 et:
|
||||
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.10.2-3) < 0)); then
|
||||
chown root:root var/log/nginx
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue