mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 21:35:55 +01:00
Update website.py
centos 8
This commit is contained in:
@@ -1367,7 +1367,7 @@ class WebsiteManager:
|
|||||||
|
|
||||||
CronUtil.CronPrem(0)
|
CronUtil.CronPrem(0)
|
||||||
|
|
||||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
|
||||||
cronPath = "/var/spool/cron/" + website.externalApp
|
cronPath = "/var/spool/cron/" + website.externalApp
|
||||||
else:
|
else:
|
||||||
cronPath = "/var/spool/cron/crontabs/" + website.externalApp
|
cronPath = "/var/spool/cron/crontabs/" + website.externalApp
|
||||||
@@ -1586,7 +1586,7 @@ class WebsiteManager:
|
|||||||
|
|
||||||
website = Websites.objects.get(domain=self.domain)
|
website = Websites.objects.get(domain=self.domain)
|
||||||
|
|
||||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
|
||||||
cronPath = "/var/spool/cron/" + website.externalApp
|
cronPath = "/var/spool/cron/" + website.externalApp
|
||||||
else:
|
else:
|
||||||
cronPath = "/var/spool/cron/crontabs/" + website.externalApp
|
cronPath = "/var/spool/cron/crontabs/" + website.externalApp
|
||||||
|
|||||||
Reference in New Issue
Block a user