possible bug fix on ubuntu 22 upgrade

This commit is contained in:
usman@cyberpersons.com
2023-02-17 14:53:29 +05:00
parent 8b6efb3d18
commit a377be4ec2
3 changed files with 3 additions and 4 deletions

View File

@@ -244,7 +244,6 @@ class CPBackupsV2:
self.website.BackupLock = 0 self.website.BackupLock = 0
self.website.save() self.website.save()
def BackupDataBases(self): def BackupDataBases(self):
### This function will backup databases of the website, also need to take care of database that we need to exclude ### This function will backup databases of the website, also need to take care of database that we need to exclude
@@ -316,7 +315,7 @@ class CPBackupsV2:
command = f'chown vmail:vmail {destination}' command = f'chown vmail:vmail {destination}'
ProcessUtilities.executioner(command) ProcessUtilities.executioner(command)
command = f'rsync -av {exclude} {source}/ {destination}/' command = f'rsync -av {source}/ {destination}/'
ProcessUtilities.executioner(command, 'vmail') ProcessUtilities.executioner(command, 'vmail')
return 1 return 1

View File

@@ -66,7 +66,6 @@ python-dateutil==2.8.1
pytz==2020.4 pytz==2020.4
pyudev==0.22.0 pyudev==0.22.0
pyxattr==0.7.1 pyxattr==0.7.1
PyYAML==5.4.1
requests==2.26.0 requests==2.26.0
requests-file==1.5.1 requests-file==1.5.1
requests-oauthlib==1.3.0 requests-oauthlib==1.3.0

View File

@@ -452,7 +452,8 @@ def refreshLicense(request):
from plogical.Backupsv2 import CPBackupsV2 from plogical.Backupsv2 import CPBackupsV2
cpbuv2 = CPBackupsV2( cpbuv2 = CPBackupsV2(
{'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1}) {'domain': 'cyberpanel.net', 'BasePath': '/home/backup', 'BackupDatabase': 1, 'BackupData': 1,
'BackupEmails': 1})
cpbuv2.InitiateBackup() cpbuv2.InitiateBackup()
final_dic = {'status': 1} final_dic = {'status': 1}