mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-14 09:16:11 +01:00
Update cronUtil.py
centos 8
This commit is contained in:
@@ -9,7 +9,7 @@ class CronUtil:
|
|||||||
def getWebsiteCron(externalApp):
|
def getWebsiteCron(externalApp):
|
||||||
try:
|
try:
|
||||||
|
|
||||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
|
||||||
cronPath = "/var/spool/cron/" + externalApp
|
cronPath = "/var/spool/cron/" + externalApp
|
||||||
else:
|
else:
|
||||||
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
||||||
@@ -29,7 +29,7 @@ class CronUtil:
|
|||||||
try:
|
try:
|
||||||
|
|
||||||
|
|
||||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
|
||||||
cronPath = "/var/spool/cron/" + externalApp
|
cronPath = "/var/spool/cron/" + externalApp
|
||||||
else:
|
else:
|
||||||
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
||||||
@@ -51,7 +51,7 @@ class CronUtil:
|
|||||||
try:
|
try:
|
||||||
line -= 1
|
line -= 1
|
||||||
|
|
||||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
|
||||||
cronPath = "/var/spool/cron/" + externalApp
|
cronPath = "/var/spool/cron/" + externalApp
|
||||||
else:
|
else:
|
||||||
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
||||||
@@ -81,7 +81,7 @@ class CronUtil:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def addNewCron(externalApp, finalCron):
|
def addNewCron(externalApp, finalCron):
|
||||||
try:
|
try:
|
||||||
if ProcessUtilities.decideDistro() == ProcessUtilities.centos:
|
if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8:
|
||||||
cronPath = "/var/spool/cron/" + externalApp
|
cronPath = "/var/spool/cron/" + externalApp
|
||||||
else:
|
else:
|
||||||
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
cronPath = "/var/spool/cron/crontabs/" + externalApp
|
||||||
|
|||||||
Reference in New Issue
Block a user