Browse Source

Merge branch 'python' of github.com:rtCamp/easyengine into python

bugfixes
harshadyeola 10 years ago
parent
commit
d544351278
  1. 12
      ee/cli/plugins/stack.py

12
ee/cli/plugins/stack.py

@ -188,8 +188,8 @@ class EEStackController(CementBaseController):
EEService.reload_service(self, 'postfix') EEService.reload_service(self, 'postfix')
if set(EEVariables.ee_nginx).issubset(set(apt_packages)): if set(EEVariables.ee_nginx).issubset(set(apt_packages)):
if ((not EEFileUtils.grep(self, "/etc/nginx", "EasyEngine")) if ((not EEShellExec.cmd_exec(self, "grep EasyEngine "
and os.path.isfile('/etc/nginx/nginx.conf')): "/etc/nginx")) and os.path.isfile('/etc/nginx/nginx.conf')):
nc = NginxConfig() nc = NginxConfig()
Log.debug(self, 'Loading file /etc/nginx/nginx.conf ') Log.debug(self, 'Loading file /etc/nginx/nginx.conf ')
nc.loadf('/etc/nginx/nginx.conf') nc.loadf('/etc/nginx/nginx.conf')
@ -580,7 +580,7 @@ class EEStackController(CementBaseController):
Log.error(self, "Unable to generate PEM key for dovecot") Log.error(self, "Unable to generate PEM key for dovecot")
Log.debug(self, "Setting Privileges to " Log.debug(self, "Setting Privileges to "
"/etc/ssl/private/dovecot.pem file ") "/etc/ssl/private/dovecot.pem file ")
EEFileUtils.chmod(self, "/etc/ssl/private/dovecot.pem", "0600") EEFileUtils.chmod(self, "/etc/ssl/private/dovecot.pem", 0o600)
# Custom Dovecot configuration by EasyEngine # Custom Dovecot configuration by EasyEngine
data = dict() data = dict()
@ -796,7 +796,7 @@ class EEStackController(CementBaseController):
EEShellExec.cmd_exec(self, "adduser amavis clamav") EEShellExec.cmd_exec(self, "adduser amavis clamav")
Log.debug(self, "Setting Privileges to /var/lib/amavis" Log.debug(self, "Setting Privileges to /var/lib/amavis"
"/tmp") "/tmp")
EEFileUtils.chmod(self, "/var/lib/amavis/tmp", "755") EEFileUtils.chmod(self, "/var/lib/amavis/tmp", 0o755)
# Update ClamAV database # Update ClamAV database
Log.debug(self, "Updating database") Log.debug(self, "Updating database")
@ -812,7 +812,7 @@ class EEStackController(CementBaseController):
if len(packages): if len(packages):
if any('/usr/bin/wp' == x[1] for x in packages): if any('/usr/bin/wp' == x[1] for x in packages):
Log.debug(self, "Setting Privileges to /usr/bin/wp file ") Log.debug(self, "Setting Privileges to /usr/bin/wp file ")
EEFileUtils.chmod(self, "/usr/bin/wp", 007) EEFileUtils.chmod(self, "/usr/bin/wp", 0o775)
if any('/tmp/pma.tar.gz' == x[1] if any('/tmp/pma.tar.gz' == x[1]
for x in packages): for x in packages):
@ -929,7 +929,7 @@ class EEStackController(CementBaseController):
if any('/usr/bin/pt-query-advisor' == x[1] if any('/usr/bin/pt-query-advisor' == x[1]
for x in packages): for x in packages):
EEFileUtils.chmod(self, "/usr/bin/pt-query-advisor", 007) EEFileUtils.chmod(self, "/usr/bin/pt-query-advisor", 0o775)
if any('/tmp/vimbadmin.tar.gz' == x[1] for x in packages): if any('/tmp/vimbadmin.tar.gz' == x[1] for x in packages):
# Extract ViMbAdmin # Extract ViMbAdmin

Loading…
Cancel
Save