Skip to content

Commit

Permalink
change checkIfSpamAssassinInstalled method
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Feb 27, 2020
1 parent 2a2521b commit 43ed9fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plogical/mailUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,15 +483,15 @@ def installSpamAssassin(install, SpamAssassin):
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(
Expand Down

0 comments on commit 43ed9fe

Please sign in to comment.