Usman Nasir
2022-07-06 08:21:14 +05:00
parent dc7daf4f64
commit 451f6c6bfe

View File

@@ -360,7 +360,6 @@ class backupUtilities:
completPathToConf = f'{backupUtilities.Server_root}/conf/vhosts/{domainName}/vhost.conf' completPathToConf = f'{backupUtilities.Server_root}/conf/vhosts/{domainName}/vhost.conf'
if os.path.exists(backupUtilities.licenseKey):
copy(completPathToConf, tempStoragePath + '/vhost.conf') copy(completPathToConf, tempStoragePath + '/vhost.conf')
## /home/example.com/backup/backup-example.com-02.13.2018_10-24-52 -- tempStoragePath ## /home/example.com/backup/backup-example.com-02.13.2018_10-24-52 -- tempStoragePath
@@ -441,7 +440,7 @@ class backupUtilities:
actualChildDomain = childDomain.find('domain').text actualChildDomain = childDomain.find('domain').text
childPath = childDomain.find('path').text childPath = childDomain.find('path').text
if os.path.exists(backupUtilities.licenseKey):
completPathToConf = f'{backupUtilities.Server_root}/conf/vhosts/{actualChildDomain}/vhost.conf' completPathToConf = f'{backupUtilities.Server_root}/conf/vhosts/{actualChildDomain}/vhost.conf'
copy(completPathToConf, f'{tempStoragePath}/{actualChildDomain}.vhost.conf') copy(completPathToConf, f'{tempStoragePath}/{actualChildDomain}.vhost.conf')
@@ -813,7 +812,6 @@ class backupUtilities:
try: try:
if os.path.exists(backupUtilities.licenseKey):
if os.path.exists(completPath + '/' + domain + '.vhost.conf'): if os.path.exists(completPath + '/' + domain + '.vhost.conf'):
completPathToConf = backupUtilities.Server_root + '/conf/vhosts/' + domain + '/vhost.conf' completPathToConf = backupUtilities.Server_root + '/conf/vhosts/' + domain + '/vhost.conf'
copy(completPath + '/' + domain + '.vhost.conf', completPathToConf) copy(completPath + '/' + domain + '.vhost.conf', completPathToConf)
@@ -1025,7 +1023,6 @@ class backupUtilities:
## emails extracted ## emails extracted
if os.path.exists(backupUtilities.licenseKey):
completPathToConf = backupUtilities.Server_root + '/conf/vhosts/' + masterDomain + '/vhost.conf' completPathToConf = backupUtilities.Server_root + '/conf/vhosts/' + masterDomain + '/vhost.conf'
if os.path.exists(completPath + '/vhost.conf'): if os.path.exists(completPath + '/vhost.conf'):
copy(completPath + '/vhost.conf', completPathToConf) copy(completPath + '/vhost.conf', completPathToConf)