mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-07 22:06:05 +01:00
bug fix: backups v2
This commit is contained in:
@@ -809,6 +809,7 @@ def CreateV2BackupButton(request):
|
||||
|
||||
background = CPBackupsV2(extra_args)
|
||||
background.start()
|
||||
|
||||
# background = CPBackupsV2({'domain': Selectedwebsite, 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1,
|
||||
# 'BackupEmails': 1, 'BackendName': Selectedrepo, 'function': 'InitiateBackup', })
|
||||
# background.start()
|
||||
|
||||
@@ -1820,6 +1820,13 @@ class BackupManager:
|
||||
def CreateV2BackupStatus(self, userID=None, data=None):
|
||||
try:
|
||||
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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user