Skip to content

Commit d544351

Browse files
committed
Merge branch 'python' of github.com:rtCamp/easyengine into python
2 parents ac04afd + c705763 commit d544351

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ee/cli/plugins/stack.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def post_pref(self, apt_packages, packages):
188188
EEService.reload_service(self, 'postfix')
189189

190190
if set(EEVariables.ee_nginx).issubset(set(apt_packages)):
191-
if ((not EEFileUtils.grep(self, "/etc/nginx", "EasyEngine"))
192-
and os.path.isfile('/etc/nginx/nginx.conf')):
191+
if ((not EEShellExec.cmd_exec(self, "grep EasyEngine "
192+
"/etc/nginx")) and os.path.isfile('/etc/nginx/nginx.conf')):
193193
nc = NginxConfig()
194194
Log.debug(self, 'Loading file /etc/nginx/nginx.conf ')
195195
nc.loadf('/etc/nginx/nginx.conf')
@@ -580,7 +580,7 @@ def post_pref(self, apt_packages, packages):
580580
Log.error(self, "Unable to generate PEM key for dovecot")
581581
Log.debug(self, "Setting Privileges to "
582582
"/etc/ssl/private/dovecot.pem file ")
583-
EEFileUtils.chmod(self, "/etc/ssl/private/dovecot.pem", "0600")
583+
EEFileUtils.chmod(self, "/etc/ssl/private/dovecot.pem", 0o600)
584584

585585
# Custom Dovecot configuration by EasyEngine
586586
data = dict()
@@ -796,7 +796,7 @@ def post_pref(self, apt_packages, packages):
796796
EEShellExec.cmd_exec(self, "adduser amavis clamav")
797797
Log.debug(self, "Setting Privileges to /var/lib/amavis"
798798
"/tmp")
799-
EEFileUtils.chmod(self, "/var/lib/amavis/tmp", "755")
799+
EEFileUtils.chmod(self, "/var/lib/amavis/tmp", 0o755)
800800

801801
# Update ClamAV database
802802
Log.debug(self, "Updating database")
@@ -812,7 +812,7 @@ def post_pref(self, apt_packages, packages):
812812
if len(packages):
813813
if any('/usr/bin/wp' == x[1] for x in packages):
814814
Log.debug(self, "Setting Privileges to /usr/bin/wp file ")
815-
EEFileUtils.chmod(self, "/usr/bin/wp", 007)
815+
EEFileUtils.chmod(self, "/usr/bin/wp", 0o775)
816816

817817
if any('/tmp/pma.tar.gz' == x[1]
818818
for x in packages):
@@ -929,7 +929,7 @@ def post_pref(self, apt_packages, packages):
929929

930930
if any('/usr/bin/pt-query-advisor' == x[1]
931931
for x in packages):
932-
EEFileUtils.chmod(self, "/usr/bin/pt-query-advisor", 007)
932+
EEFileUtils.chmod(self, "/usr/bin/pt-query-advisor", 0o775)
933933

934934
if any('/tmp/vimbadmin.tar.gz' == x[1] for x in packages):
935935
# Extract ViMbAdmin

0 commit comments

Comments
 (0)