summarylogtreecommitdiffstats
path: root/nginx.install
diff options
context:
space:
mode:
authorHui Yiqun2015-12-21 12:59:26 +0800
committerHui Yiqun2015-12-21 12:59:26 +0800
commit3e59ccd0f239cfc4a0c650e103cceff4e9d9b89c (patch)
treec1c2c0410b0c39545fefc1322d744948a6def198 /nginx.install
downloadaur-3e59ccd0f239cfc4a0c650e103cceff4e9d9b89c.tar.gz
initial commit
Diffstat (limited to 'nginx.install')
-rw-r--r--nginx.install21
1 files changed, 21 insertions, 0 deletions
diff --git a/nginx.install b/nginx.install
new file mode 100644
index 000000000000..7c4adf14bd9a
--- /dev/null
+++ b/nginx.install
@@ -0,0 +1,21 @@
+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
+}
+
+# vim:set ts=4 sw=4 et: