Merge pull request #365 from jetchirag/patch-1

Create new cron file if does not exists for user
This commit is contained in:
Usman Nasir
2020-06-21 10:44:01 +05:00
committed by GitHub

View File

@@ -739,7 +739,7 @@ class cPanelImporter:
else:
localCronPath = "/var/spool/cron/crontabs/" + self.externalApp
localCronFile = open(localCronPath, "r+")
localCronFile = open(localCronPath, "a+")
commandT = 'touch %s' % (localCronPath)
ProcessUtilities.executioner(commandT, 'root')