mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
add cron restart on ubuntu
This commit is contained in:
@@ -1609,6 +1609,9 @@ class WebsiteManager:
|
|||||||
command = 'chmod 600 %s' % (cronPath)
|
command = 'chmod 600 %s' % (cronPath)
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
|
command = 'systemctl restart cron'
|
||||||
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
CronUtil.CronPrem(0)
|
CronUtil.CronPrem(0)
|
||||||
|
|
||||||
if output.find("1,") > -1:
|
if output.find("1,") > -1:
|
||||||
|
|||||||
Reference in New Issue
Block a user