Remove unused variables
This commit is contained in:
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
### v3.9.x - [Unreleased]
|
### v3.9.x - [Unreleased]
|
||||||
|
|
||||||
|
#### Added
|
||||||
|
|
||||||
|
- Backported Nano editor package for Debian/Ubuntu/Raspbian (which support syntax highlighting with `--nanorc`)
|
||||||
|
|
||||||
#### Changed
|
#### Changed
|
||||||
|
|
||||||
- Improved WordOps performance by removing useless imports in `wo site` code
|
- Improved WordOps performance by removing useless imports in `wo site` code
|
||||||
|
|||||||
@@ -203,7 +203,6 @@ class WOSiteController(CementBaseController):
|
|||||||
# TODO Write code for wo site edit command here
|
# TODO Write code for wo site edit command here
|
||||||
pargs.site_name = pargs.site_name.strip()
|
pargs.site_name = pargs.site_name.strip()
|
||||||
wo_domain = WODomain.validate(self, pargs.site_name)
|
wo_domain = WODomain.validate(self, pargs.site_name)
|
||||||
wo_www_domain = "www.{0}".format(wo_domain)
|
|
||||||
|
|
||||||
if not check_domain_exists(self, wo_domain):
|
if not check_domain_exists(self, wo_domain):
|
||||||
Log.error(self, "site {0} does not exist".format(wo_domain))
|
Log.error(self, "site {0} does not exist".format(wo_domain))
|
||||||
@@ -276,12 +275,9 @@ class WOSiteEditController(CementBaseController):
|
|||||||
|
|
||||||
pargs.site_name = pargs.site_name.strip()
|
pargs.site_name = pargs.site_name.strip()
|
||||||
wo_domain = WODomain.validate(self, pargs.site_name)
|
wo_domain = WODomain.validate(self, pargs.site_name)
|
||||||
wo_www_domain = "www.{0}".format(wo_domain)
|
|
||||||
if not check_domain_exists(self, wo_domain):
|
if not check_domain_exists(self, wo_domain):
|
||||||
Log.error(self, "site {0} does not exist".format(wo_domain))
|
Log.error(self, "site {0} does not exist".format(wo_domain))
|
||||||
|
|
||||||
wo_site_webroot = WOVar.wo_webroot + wo_domain
|
|
||||||
|
|
||||||
if os.path.isfile('/etc/nginx/sites-available/{0}'
|
if os.path.isfile('/etc/nginx/sites-available/{0}'
|
||||||
.format(wo_domain)):
|
.format(wo_domain)):
|
||||||
try:
|
try:
|
||||||
@@ -341,7 +337,6 @@ class WOSiteDeleteController(CementBaseController):
|
|||||||
|
|
||||||
pargs.site_name = pargs.site_name.strip()
|
pargs.site_name = pargs.site_name.strip()
|
||||||
wo_domain = WODomain.validate(self, pargs.site_name)
|
wo_domain = WODomain.validate(self, pargs.site_name)
|
||||||
wo_www_domain = "www.{0}".format(wo_domain)
|
|
||||||
wo_db_name = ''
|
wo_db_name = ''
|
||||||
wo_prompt = ''
|
wo_prompt = ''
|
||||||
wo_nginx_prompt = ''
|
wo_nginx_prompt = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user