mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-20 03:21:18 +02:00
bug fix: backup schedules
This commit is contained in:
@@ -727,8 +727,11 @@ Automatic backup failed for %s on %s.
|
||||
domain, time.strftime("%m.%d.%Y_%H-%M-%S"))).save()
|
||||
|
||||
jobConfig = json.loads(backupjob.config)
|
||||
if jobConfig['pid']:
|
||||
del jobConfig['pid']
|
||||
try:
|
||||
if jobConfig['pid']:
|
||||
del jobConfig['pid']
|
||||
except:
|
||||
pass
|
||||
jobConfig[IncScheduler.currentStatus] = 'Not running'
|
||||
backupjob.config = json.dumps(jobConfig)
|
||||
backupjob.save()
|
||||
|
||||
Reference in New Issue
Block a user