mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-26 22:21:14 +02:00
bug fix: fix opendkim port on email settings reset
This commit is contained in:
@@ -2060,11 +2060,11 @@ milter_default_action = accept
|
||||
writeToFile.write(configData)
|
||||
writeToFile.close()
|
||||
|
||||
if self.distro == ubuntu:
|
||||
if self.distro == ubuntu or self.distro == cent8:
|
||||
data = open(openDKIMConfigurePath, 'r').readlines()
|
||||
writeToFile = open(openDKIMConfigurePath, 'w')
|
||||
for items in data:
|
||||
if items.find('Socket') > -1 and items.find('local:') and items[0] != '#':
|
||||
if items.find('Socket') > -1 and items.find('local:'):
|
||||
writeToFile.writelines('Socket inet:8891@localhost\n')
|
||||
else:
|
||||
writeToFile.writelines(items)
|
||||
|
||||
Reference in New Issue
Block a user