diff --git a/install b/install index 5d293836..93b68812 100644 --- a/install +++ b/install @@ -169,6 +169,10 @@ function update_to_ee3() # Preserve old configuration ee_lib_echo "Updating EasyEngine 3 configuration" + if [ -f /etc/nginx/nginx.conf ]; then + sed -i "s/X-Powered-By.*/X-Powered-By \"EasyEngine $new_ee_version\";/" /etc/nginx/nginx.conf &>> /dev/null + fi + grant_host=$(grep grant-host /etc/easyengine/ee.conf | awk '{ print $3 }') db_name=$(grep db-name /etc/easyengine/ee.conf | awk '{ print $3 }') db_user=$(grep db-name /etc/easyengine/ee.conf | awk '{ print $3 }')