diff --git a/src/modules/site/update/ee_mod_update_nginx.sh b/src/modules/site/update/ee_mod_update_nginx.sh index ce1f6132..4aaba0f9 100644 --- a/src/modules/site/update/ee_mod_update_nginx.sh +++ b/src/modules/site/update/ee_mod_update_nginx.sh @@ -32,8 +32,8 @@ function ee_mod_update_nginx() # Update NGINX conf for HTML site if [ "$EE_SITE_CURRENT_OPTION" = "HTML" ]; then sed -i 's/access\.log/access.log rt_cache/' /etc/nginx/sites-available/$EE_DOMAIN && \ - sed -i '/index index.html index.htm;$/c \\tindex index.php index.htm index.html;' $EE_SITE_NGINX_CONF && \ - sed -i '/location \/ {/,/}/d ' $EE_SITE_NGINX_CONF \ + sed -i '/index index.html index.htm;$/c \\tindex index.php index.htm index.html;' $/etc/nginx/sites-available/$EE_DOMAIN && \ + sed -i '/location \/ {/,/}/d ' $/etc/nginx/sites-available/$EE_DOMAIN \ || ee_lib_error "Unable to update NGINX configuration to $EE_SITE_CREATE_OPTION $EE_SITE_CACHE_OPTION, exit status =" $? # Update HTML to PHP MySQL --basic (--wp/--wpsubdir/--wpsubdomain) options