mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
16 lines
748 B
Plaintext
16 lines
748 B
Plaintext
post_upgrade() {
|
|
if [[ $(vercmp $2 1.2.7-4) -le 0 ]]; then
|
|
chmod 750 var/log/nginx
|
|
chown http:log var/log/nginx
|
|
fi
|
|
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
|
|
}
|