summaryrefslogtreecommitdiff
path: root/community/nginx/nginx.install
blob: efc1555568f9742cc63d7ee80fc79ab6a96bd6fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
post_install() {
    if [[ -e var/log/nginx ]]; then
        chmod 750 var/log/nginx
        chown root: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"
        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
}