From 12ec205d49d1a3295091b3f55fe552469d55508d Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 12 Feb 2015 17:43:11 +0530 Subject: [PATCH] Fixed X-Powered-By header not updating --- install | 4 ++++ 1 file changed, 4 insertions(+) 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 }')