|
@ -742,7 +742,7 @@ then |
|
|
if [ -n "$3" ] |
|
|
if [ -n "$3" ] |
|
|
then |
|
|
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.''") |
|
|
DOMAIN=$(echo $3 | tr 'A-Z' 'a-z' | sed "s'http://''" | sed "s'https://''" | sed "s'www.''") |
|
|
|
|
|
|
|
|
# Creating Site |
|
|
# Creating Site |
|
@ -838,8 +838,8 @@ then |
|
|
if [ -n "$3" ] |
|
|
if [ -n "$3" ] |
|
|
then |
|
|
then |
|
|
|
|
|
|
|
|
# Remove http:// & www. |
|
|
# Remove http:// https:// & www. |
|
|
DOMAIN=$(echo $3 | sed "s'http://''" | sed "s'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 |
|
|
# Make Backup Directory For Storing Older Nginx Configurations |
|
|
if [ ! -d /etc/nginx/sites-available/backups/ ] |
|
|
if [ ! -d /etc/nginx/sites-available/backups/ ] |
|
|