Browse Source

fixed info message bug

bugfixes
harshadyeola 10 years ago
parent
commit
b56bd47f91
  1. 9
      ee/cli/plugins/site.py
  2. 4
      ee/core/services.py

9
ee/cli/plugins/site.py

@ -11,6 +11,8 @@ from ee.core.git import EEGit
import sys
import os
import glob
import subprocess
from subprocess import Popen
def ee_site_hook(app):
@ -23,13 +25,8 @@ class EESiteController(CementBaseController):
label = 'site'
stacked_on = 'base'
stacked_type = 'nested'
<<<<<<< HEAD
description = ('''site command manages website configuration
with the help of the following subcommands''')
=======
description = ('site command manages website configuration'
' with the help of the following subcommands')
>>>>>>> 78782f7a7595c1e9d9c8e041c9f081e331f156f8
arguments = [
(['site_name'],
dict(help='website name')),
@ -157,7 +154,7 @@ class EESiteController(CementBaseController):
if os.path.isfile('/etc/nginx/sites-available/{0}'
.format(ee_domain)):
ee_site_webroot = EEVariables.ee_webroot + ee_domain
EEFileutils.chdir(self, ee_site_webroot)
EEFileUtils.chdir(self, ee_site_webroot)
try:
subprocess.call(['bash'])
except OSError as e:

4
ee/core/services.py

@ -59,11 +59,11 @@ class EEService():
if retcode[0] == 0:
subprocess.getstatusoutput('service {0} reload'
.format(service_name))
Log.info("reload : {0} [OK]"
Log.info(self, "reload : {0} [OK]"
.format(service_name))
return True
else:
Log.error("reload : {0} [FAIL]"
Log.error(self, "reload : {0} [FAIL]"
.format(service_name))
Log.debug("{0}"
.format(retcode[1]))

Loading…
Cancel
Save