diff --git a/install/install.py b/install/install.py index a44b9350d..bc8ce0635 100755 --- a/install/install.py +++ b/install/install.py @@ -654,6 +654,12 @@ password="%s" command = 'chmod 640 /etc/pdns/pdns.conf' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + else: + command = 'chown root:pdns /etc/powerdns/pdns.conf' + preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + + command = 'chmod 640 /etc/powerdns/pdns.conf' + preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) command = 'chmod 640 /usr/local/lscp/cyberpanel/logs/access.log' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) diff --git a/plogical/renew.py b/plogical/renew.py index 63ecf9b84..cefff7257 100644 --- a/plogical/renew.py +++ b/plogical/renew.py @@ -101,6 +101,17 @@ class Renew: 'SSL does not exist for %s. Obtaining now..' % (website.domain), 0) virtualHostUtilities.issueSSL(website.domain, website.path, website.master.adminEmail) + self.file = logging.writeToFile('Restarting mail services for them to see new SSL.', 0) + + from plogical.processUtilities import ProcessUtilities + command = 'postmap -F hash:/etc/postfix/vmail_ssl.map' + ProcessUtilities.normalExecutioner(command) + + command = 'systemctl restart postfix' + ProcessUtilities.normalExecutioner(command) + + command = 'systemctl restart dovecot' + ProcessUtilities.normalExecutioner(command) except BaseException as msg: logging.writeToFile(str(msg) + '. Renew.SSLObtainer') diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 6fd62abce..e2a21b228 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -2820,7 +2820,7 @@ vmail except: pass - command = 'cp /usr/local/lsws/lsphp73/bin/lsphp %s' % (phpPath) + command = 'cp /usr/local/lsws/lsphp74/bin/lsphp %s' % (phpPath) Upgrade.executioner(command, 0) try: