mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-15 00:31:59 +02:00
Merge pull request #365 from jetchirag/patch-1
Create new cron file if does not exists for user
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user