mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-26 17:29:05 +01:00
Merge branch 'v1.7.2-plugin' of https://github.com/usmannasir/cyberpanel into v1.7.2-plugin
This commit is contained in:
@@ -2038,6 +2038,10 @@ class preFlightsChecks:
|
||||
cmd = shlex.split(command)
|
||||
res = subprocess.call(cmd)
|
||||
|
||||
command = "mkdir -p /etc/pki/dovecot/certs/"
|
||||
cmd = shlex.split(command)
|
||||
res = subprocess.call(cmd)
|
||||
|
||||
command = "mkdir -p /etc/opendkim/keys/"
|
||||
cmd = shlex.split(command)
|
||||
res = subprocess.call(cmd)
|
||||
@@ -2045,6 +2049,9 @@ class preFlightsChecks:
|
||||
command = "sed -i 's/auth_mechanisms = plain/#auth_mechanisms = plain/g' /etc/dovecot/conf.d/10-auth.conf"
|
||||
subprocess.call(shlex.split(command))
|
||||
|
||||
command = "systemctl restart dovecot"
|
||||
subprocess.call(shlex.split(command))
|
||||
|
||||
|
||||
logging.InstallLog.writeToFile("Postfix and Dovecot configured")
|
||||
|
||||
@@ -2845,12 +2852,12 @@ class preFlightsChecks:
|
||||
preFlightsChecks.stdOut("Succcessfully installed opendkim!")
|
||||
break
|
||||
|
||||
if self.distro == ubuntu:
|
||||
command = 'apt install opendkim-tools'
|
||||
subprocess.call(shlex.split(command))
|
||||
if self.distro == ubuntu:
|
||||
command = 'apt install opendkim-tools'
|
||||
subprocess.call(shlex.split(command))
|
||||
|
||||
command = 'mkdir -p /etc/opendkim/keys/'
|
||||
subprocess.call(shlex.split(command))
|
||||
command = 'mkdir -p /etc/opendkim/keys/'
|
||||
subprocess.call(shlex.split(command))
|
||||
|
||||
|
||||
except OSError, msg:
|
||||
@@ -3417,4 +3424,4 @@ def main():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
main()
|
||||
Reference in New Issue
Block a user