diff options
author | root <root@rshg054.dnsready.net> | 2013-03-23 00:06:21 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-23 00:06:21 -0700 |
commit | a42cd7aaabfdb3ecc0a538548e8dbcc7ca860b2d (patch) | |
tree | bbea919c4d1e7d8d747e636040d0cd510c279d68 /community/nginx/nginx.install | |
parent | 6b3123e5628817e3cef9c44989dffd21c49b0817 (diff) |
Sat Mar 23 00:06:20 PDT 2013
Diffstat (limited to 'community/nginx/nginx.install')
-rw-r--r-- | community/nginx/nginx.install | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/community/nginx/nginx.install b/community/nginx/nginx.install index efc155556..0daccc639 100644 --- a/community/nginx/nginx.install +++ b/community/nginx/nginx.install @@ -1,12 +1,8 @@ -post_install() { - if [[ -e var/log/nginx ]]; then +post_upgrade() { + if [[ $(vercmp $2 1.2.7-4) -le 0 ]]; then chmod 750 var/log/nginx - chown root:log var/log/nginx + chown http:log var/log/nginx fi -} - -post_upgrade() { - [[ $(vercmp $2 1.2.7-3) -le 0 ]] && post_install if [[ $(vercmp $2 1.2.1-2) -le 0 ]]; then echo " >>> Since 1.2.1-2 several changes has been made in package:" echo " - *.conf files have been moved to /etc/nginx" |