bug fix while saving vhost conf

This commit is contained in:
Usman Nasir
2022-08-11 11:58:44 +05:00
parent 72d60b31a6
commit e870bb06a6

View File

@@ -358,9 +358,9 @@ class backupUtilities:
## Saving original vhost conf file
completPathToConf = f'{backupUtilities.Server_root}/conf/vhosts/{domainName}/vhost.conf'
#completPathToConf = f'{backupUtilities.Server_root}/conf/vhosts/{domainName}/vhost.conf'
copy(completPathToConf, tempStoragePath + '/vhost.conf')
#copy(completPathToConf, tempStoragePath + '/vhost.conf')
## /home/example.com/backup/backup-example.com-02.13.2018_10-24-52 -- tempStoragePath
## shutil.make_archive
@@ -431,6 +431,12 @@ class backupUtilities:
## Child Domains SSL.
## For master domain copy the conf file to tempStorage path here it was done above, but since it is root operation it should be performed here
completPathToConf = f'{backupUtilities.Server_root}/conf/vhosts/{domainName}/vhost.conf'
copy(completPathToConf, tempStoragePath + '/vhost.conf')
childDomains = backupMetaData.findall('ChildDomains/domain')
try: