From d25c5ab6a653a811a8de69a45647fe2268a90c48 Mon Sep 17 00:00:00 2001 From: jetchirag Date: Sun, 21 Jun 2020 05:03:39 +0530 Subject: [PATCH] Create new cron file if does not exists for user --- plogical/cPanelImporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plogical/cPanelImporter.py b/plogical/cPanelImporter.py index b0b01cd1b..2eea199f6 100644 --- a/plogical/cPanelImporter.py +++ b/plogical/cPanelImporter.py @@ -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')