From 956995c02b16b93f43882ee8ab34f7d79551309c Mon Sep 17 00:00:00 2001 From: Mitesh Shah Date: Tue, 11 Jun 2013 12:16:21 +0530 Subject: [PATCH] Minor Fix in Domain Name --- setup/engine | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/engine b/setup/engine index 7d5b466c..2908667e 100755 --- a/setup/engine +++ b/setup/engine @@ -742,7 +742,7 @@ then if [ -n "$3" ] then - # Remove http:// & www. + # Remove http:// https:// & www. DOMAIN=$(echo $3 | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''") # Creating Site @@ -838,8 +838,8 @@ then if [ -n "$3" ] then - # Remove http:// & www. - DOMAIN=$(echo $3 | sed "s'http://''" | sed "s'www.''") + # Remove http:// https:// & www. + DOMAIN=$(echo $3 | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''") # Make Backup Directory For Storing Older Nginx Configurations if [ ! -d /etc/nginx/sites-available/backups/ ]