mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-26 16:31:38 +02:00
bug fix: inc backups: email bypass
This commit is contained in:
@@ -631,12 +631,13 @@ class IncJobs(multi.Thread):
|
||||
|
||||
backupPath = '/home/vmail/%s' % (self.website.domain)
|
||||
|
||||
if self.backupDestinations == 'local':
|
||||
self.localFunction(backupPath, 'email')
|
||||
elif self.backupDestinations[:4] == 'sftp':
|
||||
self.sftpFunction(backupPath, 'email')
|
||||
else:
|
||||
self.awsFunction('backup', backupPath, '', 'email')
|
||||
if os.path.exists(backupPath):
|
||||
if self.backupDestinations == 'local':
|
||||
self.localFunction(backupPath, 'email')
|
||||
elif self.backupDestinations[:4] == 'sftp':
|
||||
self.sftpFunction(backupPath, 'email')
|
||||
else:
|
||||
self.awsFunction('backup', backupPath, '', 'email')
|
||||
|
||||
logging.statusWriter(self.statusPath,
|
||||
'Emails for %s backed to %s.' % (self.website.domain, self.backupDestinations), 1)
|
||||
|
||||
Reference in New Issue
Block a user