summarylogtreecommitdiffstats
path: root/nginx.install
diff options
context:
space:
mode:
authorAllen Zhong2015-06-08 17:26:55 +0800
committerAllen Zhong2015-06-08 17:26:55 +0800
commitd87bf6791ee5112ae3f885fb34043fb29679ceb8 (patch)
tree037ae37f58942dee9d1830531f414b452e8e34ed /nginx.install
downloadaur-d87bf6791ee5112ae3f885fb34043fb29679ceb8.tar.gz
migrate from aur3: nginx-tcp 1.6.2-1
Diffstat (limited to 'nginx.install')
-rw-r--r--nginx.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/nginx.install b/nginx.install
new file mode 100644
index 000000000000..1bfad1e99bca
--- /dev/null
+++ b/nginx.install
@@ -0,0 +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
+}
+