|
|
@ -283,6 +283,14 @@ function ee_update_latest() |
|
|
|
elif [ -f /etc/nginx/nginx.conf ]; then |
|
|
|
sed -i "s/X-Powered-By.*/X-Powered-By \"EasyEngine $ee_version_new\";/" /etc/nginx/nginx.conf &>> /dev/null |
|
|
|
fi |
|
|
|
|
|
|
|
# Disable Xdebug on old systems if and only if ee debug is off |
|
|
|
if [ -f /etc/php5/mods-available/xdebug.ini ]; then |
|
|
|
ee_debug_value=$(grep -Hr 9001 /etc/nginx/conf.d/upstream.conf | wc -l ) |
|
|
|
if [ $ee_debug_value -eq 1 ]; then |
|
|
|
sed -i "s/zend_extension/;zend_extension" /etc/php5/mods-available/xdebug.ini |
|
|
|
fi |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
# Do git intialisation |
|
|
@ -343,6 +351,7 @@ else |
|
|
|
ee_install | tee -ai $ee_install_log |
|
|
|
ee_git_init | tee -ai $ee_install_log |
|
|
|
service nginx reload &>> /dev/null |
|
|
|
service php5-fpm restart &>> /dev/null |
|
|
|
fi |
|
|
|
else |
|
|
|
ee_lib_echo_fail "You already have EasyEngine $ee_version_new, exit status = " $? | tee -ai $ee_install_log |
|
|
|