bug fix: pdns

This commit is contained in:
Usman Nasir
2022-09-26 23:02:31 +05:00
parent e7975df198
commit 2e52d42828
3 changed files with 18 additions and 1 deletions

View File

@@ -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)

View File

@@ -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')

View File

@@ -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: