From 4a3c2b4314a5a38e06f51249f3273a9bc2309b79 Mon Sep 17 00:00:00 2001 From: Prabuddha Chakraborty Date: Wed, 9 Dec 2015 17:55:26 +0530 Subject: [PATCH] Update install script --- install | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install b/install index d682967e..d24cac42 100644 --- a/install +++ b/install @@ -490,6 +490,14 @@ function ee_update_latest() fi fi + #Fix For --letsencrypt + if [ -f /etc/nginx/common/locations.conf ]; then + grep -0 'location ~ \/\\.well-known' /etc/nginx/common/locations.conf &>> /dev/null + if [ $? -ne 0 ]; then + sed -i 's/# Deny hidden files/# Deny hidden files\nlocation ~ \/\\.well-known {\n allow all;\n}\n /g' /etc/nginx/common/locations.conf &>> /dev/null + fi + fi + # Fix for 3.3.2 renamed nginx.conf nginx -V 2>&1 &>>/dev/null if [[ $? -eq 0 ]]; then