mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
cli utility to convert old alias to new alias
This commit is contained in:
@@ -618,8 +618,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