From d9abe95a22fd2423ec6e2f13a026760dd57cd0f1 Mon Sep 17 00:00:00 2001 From: harshadyeola Date: Mon, 2 Mar 2015 11:45:20 +0530 Subject: [PATCH] Fixed #444 --- ee/cli/plugins/site.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ee/cli/plugins/site.py b/ee/cli/plugins/site.py index 04c6f166..8e86dfb6 100644 --- a/ee/cli/plugins/site.py +++ b/ee/cli/plugins/site.py @@ -522,7 +522,7 @@ class EESiteCreateController(CementBaseController): .format(ee_wp_creds['wp_pass']), log=False) display_cache_settings(self, data) - addNewSite(self, ee_www_domain, stype, cache, ee_site_webroot) + addNewSite(self, ee_domain, stype, cache, ee_site_webroot) Log.info(self, "Successfully created site" " http://{0}".format(ee_domain)) @@ -1071,6 +1071,8 @@ class EESiteDeleteController(CementBaseController): if (ee_nginx_prompt == 'Y' or ee_nginx_prompt == 'y'): Log.debug(self, "Removing Nginx configuration") + EEFileUtils.rm(self, '/etc/nginx/sites-enabled/{0}' + .format(ee_domain)) EEFileUtils.rm(self, '/etc/nginx/sites-available/{0}' .format(ee_domain)) EEGit.add(self, ["/etc/nginx"],