PKGBUILDs/community/nginx-mainline/nginx.install

13 lines
398 B
Plaintext
Raw Normal View History

2016-05-26 12:48:52 +00:00
post_upgrade() {
2017-01-15 18:42:00 +00:00
if (( $(vercmp $2 1.11.8-2) < 0)); then
chown root:root var/log/nginx
fi
2017-02-10 13:25:52 +00:00
if (( $(vercmp $2 1.11.9-2) < 0 )); then
chmod 755 var/log/nginx
echo ':: Security notice:'
echo ' - When additional log directories are used in /var/log/nginx make sure they'
echo ' are owned by root:root and have 755 set as permission to mitigate CVE-2016-1247'
fi
2016-05-26 12:48:52 +00:00
}