summarylogtreecommitdiffstats
path: root/tengine.install
blob: fc724b9c99df49ed70c70e7d75f8a09042eb9a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
post_upgrade() {
    if [[ $(vercmp $2 2.0.3-3) -le 0 ]]; then
        if [ -f /etc/tengine/sbin ]; then
            rm -rf /etc/tengine/sbin
        fi
    fi

    if [[ $(vercmp $2 2.2.0-1) -le 0 ]]; then
        chmod 755 var/log/tengine
        chown root:root var/log/tengine
        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
    if [[ $(vercmp $2 2.3.0-1) -le 0 ]]; then
        echo ':: WARNING:'
        echo '     - Tengine has been upgraded core files from Nginx 1.15.9 version, and some tengine'
        echo '       features has been replaced by nginx offical ones.'
        echo '       Check your config files before attempting to restart the process.'
        echo '     See: https://github.com/alibaba/tengine/issues/1220'
        echo '     - The nginx_tcp_proxy_module is removed, it is not maintained anymore.'
    fi
}