diff options
| author | Mark Weiman <mark.weiman@markzz.com> | 2016-01-07 15:41:02 -0500 |
|---|---|---|
| committer | Mark Weiman <mark.weiman@markzz.com> | 2016-01-07 15:41:02 -0500 |
| commit | 2bb1b6c7d8812934e77c73f024243cf3870462ec (patch) | |
| tree | 2b6ac298cc81510bcd57d4d63c90ed133eb9e5ce /nginx-markzz/nginx.install | |
| parent | 8f85fe9394490d81621e2c65ad7597aeda9b3c75 (diff) | |
| download | markzz-2bb1b6c7d8812934e77c73f024243cf3870462ec.tar.gz markzz-2bb1b6c7d8812934e77c73f024243cf3870462ec.zip | |
added nginx-markzz
Signed-off-by: Mark Weiman <mark.weiman@markzz.com>
Diffstat (limited to 'nginx-markzz/nginx.install')
| -rw-r--r-- | nginx-markzz/nginx.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nginx-markzz/nginx.install b/nginx-markzz/nginx.install new file mode 100644 index 0000000..7c4adf1 --- /dev/null +++ b/nginx-markzz/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: |
