2 if (( $(vercmp $2 1.2.7-4) <= 0 )); then
3 chmod 750 var/log/nginx
4 chown http:log var/log/nginx
7 if (( $(vercmp $2 1.2.1-2) <= 0 )); then
8 echo ':: Since 1.2.1-2 several changes has been made in package:'
9 echo ' - *.conf files have been moved to /etc/nginx'
10 echo ' - /etc/conf.d/nginx has been removed'
11 echo ' Main configuration file is set to /etc/nginx/nginx.conf'
12 echo ' - access.log and error.log can be found in /var/log/nginx by default'
13 echo ' - bundled *.html files have been moved to /usr/share/nginx/html'
14 echo ' - /etc/nginx/{html,logs} symbolic links and *.default files have been removed'
17 if (( $(vercmp $2 1.10.2-3) < 0)); then
18 chown root:root var/log/nginx
21 if (( $(vercmp $2 1.10.3-2) < 0 )); then
22 chmod 755 var/log/nginx
23 echo ':: Security notice:'
24 echo ' - When additional log directories are used in /var/log/nginx make sure they'
25 echo ' are owned by root:root and have 755 set as permission to mitigate CVE-2016-1247'