mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
bug fix: backups v2
This commit is contained in:
@@ -809,6 +809,7 @@ def CreateV2BackupButton(request):
|
|||||||
|
|
||||||
background = CPBackupsV2(extra_args)
|
background = CPBackupsV2(extra_args)
|
||||||
background.start()
|
background.start()
|
||||||
|
|
||||||
# background = CPBackupsV2({'domain': Selectedwebsite, 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1,
|
# background = CPBackupsV2({'domain': Selectedwebsite, 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1,
|
||||||
# 'BackupEmails': 1, 'BackendName': Selectedrepo, 'function': 'InitiateBackup', })
|
# 'BackupEmails': 1, 'BackendName': Selectedrepo, 'function': 'InitiateBackup', })
|
||||||
# background.start()
|
# background.start()
|
||||||
|
|||||||
@@ -1820,6 +1820,13 @@ class BackupManager:
|
|||||||
def CreateV2BackupStatus(self, userID=None, data=None):
|
def CreateV2BackupStatus(self, userID=None, data=None):
|
||||||
try:
|
try:
|
||||||
domain = data['domain']
|
domain = data['domain']
|
||||||
|
currentACL = ACLManager.loadedACL(userID)
|
||||||
|
admin = Administrator.objects.get(pk=userID)
|
||||||
|
|
||||||
|
if ACLManager.checkOwnership(domain, admin, currentACL) == 1:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
return ACLManager.loadError()
|
||||||
|
|
||||||
statusFile = f'/home/cyberpanel/{domain}_rustic_backup_log'
|
statusFile = f'/home/cyberpanel/{domain}_rustic_backup_log'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user