Browse Source

Fixed X-Powered-By header not updating

bugfixes
gau1991 10 years ago
parent
commit
12ec205d49
  1. 4
      install

4
install

@ -169,6 +169,10 @@ function update_to_ee3()
# Preserve old configuration # Preserve old configuration
ee_lib_echo "Updating EasyEngine 3 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 }') 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_name=$(grep db-name /etc/easyengine/ee.conf | awk '{ print $3 }')
db_user=$(grep db-name /etc/easyengine/ee.conf | awk '{ print $3 }') db_user=$(grep db-name /etc/easyengine/ee.conf | awk '{ print $3 }')

Loading…
Cancel
Save