|
|
@ -415,6 +415,27 @@ function ee_update_latest() |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
# Fix for 3.3.2 renamed nginx.conf |
|
|
|
nginx -V 2&>> /dev/null |
|
|
|
if [[ $? -eq 0 ]]; then |
|
|
|
nginx -t 2>&1 | grep 'open() "/etc/nginx/nginx.conf" failed' &>> /dev/null |
|
|
|
if [[ $? -eq 0 ]]; then |
|
|
|
if [ -f /etc/nginx/nginx.conf.old ]; then |
|
|
|
if [ ! -f /etc/nginx/nginx.conf ]; then |
|
|
|
cp /etc/nginx/nginx.conf.old /etc/nginx/nginx.conf |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
# Fix for 3.3.2 renamed fastcgi_param |
|
|
|
nginx -t 2>&1 | grep 'open() "/etc/nginx/fastcgi_params" failed' |
|
|
|
if [[ $? -eq 0 ]]; then |
|
|
|
if [ -f /etc/nginx/fastcgi_params.old ]; then |
|
|
|
if [ ! -f /etc/nginx/fastcgi_params ]; then |
|
|
|
cp /etc/nginx/fastcgi_params.old /etc/nginx/fastcgi_params |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
# Do git intialisation |
|
|
|