mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
bug fix: permission issue with cron file
This commit is contained in:
@@ -1338,6 +1338,8 @@ class WebsiteManager:
|
|||||||
command = 'chown %s:%s %s' % (website.externalApp, website.externalApp, cronPath)
|
command = 'chown %s:%s %s' % (website.externalApp, website.externalApp, cronPath)
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
|
f = ProcessUtilities.outputExecutioner(execPath, website.externalApp)
|
||||||
|
|
||||||
if f.find("0,CyberPanel,") > -1:
|
if f.find("0,CyberPanel,") > -1:
|
||||||
data_ret = {'getWebsiteCron': 0, "user": website.externalApp, "crons": {}}
|
data_ret = {'getWebsiteCron': 0, "user": website.externalApp, "crons": {}}
|
||||||
final_json = json.dumps(data_ret)
|
final_json = json.dumps(data_ret)
|
||||||
|
|||||||
Reference in New Issue
Block a user