mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 17:26:17 +01:00
Create new cron file if does not exists for user
This commit is contained in:
@@ -739,7 +739,7 @@ class cPanelImporter:
|
|||||||
else:
|
else:
|
||||||
localCronPath = "/var/spool/cron/crontabs/" + self.externalApp
|
localCronPath = "/var/spool/cron/crontabs/" + self.externalApp
|
||||||
|
|
||||||
localCronFile = open(localCronPath, "r+")
|
localCronFile = open(localCronPath, "a+")
|
||||||
|
|
||||||
commandT = 'touch %s' % (localCronPath)
|
commandT = 'touch %s' % (localCronPath)
|
||||||
ProcessUtilities.executioner(commandT, 'root')
|
ProcessUtilities.executioner(commandT, 'root')
|
||||||
|
|||||||
Reference in New Issue
Block a user