bug fix cron on ubuntu

This commit is contained in:
Usman Nasir
2020-03-25 12:00:32 +05:00
parent 595fc6f525
commit db17cd1dd3
3 changed files with 13 additions and 0 deletions

View File

@@ -1702,6 +1702,11 @@ imap_folder_list_limit = 0
cronFile.write(content)
cronFile.close()
if not os.path.exists(CentOSPath):
command = 'chmod 600 %s' % (cronPath)
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
if self.distro == centos or self.distro == cent8:
command = 'systemctl restart crond.service'
else: