summarylogtreecommitdiffstats
path: root/tengine.install
blob: 0e32ebaf1dd162a02af800fc0a803a9ced2885b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_upgrade() {
    if [[ $(vercmp $2 1.4.3-3) -le 0 ]]; then
        chmod 750 var/log/tengine
        chown http:log var/log/tengine
    fi

    if [[ $(vercmp $2 2.0.3-3) -le 0 ]]; then
        if [ -f /etc/tengine/sbin ]; then
            rm -rf /etc/tengine/sbin
        fi
    fi
}