mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 09:16:11 +01:00
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