mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
change checkIfSpamAssassinInstalled method
This commit is contained in:
@@ -483,15 +483,15 @@ milter_default_action = accept
|
||||
def checkIfSpamAssassinInstalled():
|
||||
try:
|
||||
|
||||
path = "/etc/mail/spamassassin/local.cf"
|
||||
path = "/etc/postfix/master.cf"
|
||||
|
||||
command = "sudo cat " + path
|
||||
command = "cat " + path
|
||||
output = ProcessUtilities.outputExecutioner(command)
|
||||
|
||||
if output.find('No such') > -1:
|
||||
return 0
|
||||
else:
|
||||
if output.find('content_filter=spamassassin') > -1:
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
|
||||
except BaseException as msg:
|
||||
logging.CyberCPLogFileWriter.writeToFile(
|
||||
|
||||
Reference in New Issue
Block a user