bug fix in backup encoding

This commit is contained in:
Usman Nasir
2021-03-26 00:36:41 +05:00
parent 0e3173f5c7
commit 6497247eb4

View File

@@ -374,7 +374,9 @@ class backupUtilities:
# copy_tree('/home/%s/public_html' % domainName, '%s/%s' % (tempStoragePath, 'public_html')) # copy_tree('/home/%s/public_html' % domainName, '%s/%s' % (tempStoragePath, 'public_html'))
command = 'cp -R /home/%s/public_html %s/public_html' % (domainName, tempStoragePath) command = 'cp -R /home/%s/public_html %s/public_html' % (domainName, tempStoragePath)
ProcessUtilities.executioner(command)
if ProcessUtilities.normalExecutioner(command) == 0:
raise BaseException('Failed to run %s.' % (command))
# make_archive(os.path.join(tempStoragePath,"public_html"), 'gztar', os.path.join("/home",domainName,"public_html")) # make_archive(os.path.join(tempStoragePath,"public_html"), 'gztar', os.path.join("/home",domainName,"public_html"))
@@ -1939,7 +1941,7 @@ def submitBackupCreation(tempStoragePath, backupName, backupPath, backupDomain):
+ backupName + " --backupPath " + backupPath + ' --backupDomain ' + backupDomain + ' --metaPath %s' % ( + backupName + " --backupPath " + backupPath + ' --backupDomain ' + backupDomain + ' --metaPath %s' % (
result[2]) result[2])
output = ProcessUtilities.outputExecutioner(execPath) output = ProcessUtilities.outputExecutioner(execPath, website.externalApp)
if output.find('[5009]') > -1: if output.find('[5009]') > -1:
logging.CyberCPLogFileWriter.writeToFile(output) logging.CyberCPLogFileWriter.writeToFile(output)