@@ -302,12 +302,14 @@ def prettify(elem):
302302
303303 logging .CyberCPLogFileWriter .statusWriter (status , 'Meta data is ready..' )
304304
305+ print ('1,%s' % (metaPath ))
305306 return 1 , 'None' , metaPath
306307
307308 except BaseException as msg :
308309 logging .CyberCPLogFileWriter .writeToFile ("%s [207][5009]" % (str (msg )))
309310 if FromInner :
310311 logging .CyberCPLogFileWriter .statusWriter (status , "%s [207][5009]" % (str (msg )))
312+ print ('0,%s' % (str (msg )))
311313 return 0 , str (msg ), 'None'
312314
313315
@@ -1982,6 +1984,8 @@ def submitBackupCreation(tempStoragePath, backupName, backupPath, backupDomain):
19821984 writeToFile .close ()
19831985 logging .CyberCPLogFileWriter .statusWriter (status , str (output + ' [1084][5009]' ))
19841986 return 0
1987+ else :
1988+ finalMetaPath = output .split (',' )[1 ]
19851989
19861990 # result = backupUtilities.prepareBackupMeta(backupDomain, backupName, tempStoragePath, backupPath)
19871991 #
@@ -1992,16 +1996,11 @@ def submitBackupCreation(tempStoragePath, backupName, backupPath, backupDomain):
19921996 # logging.CyberCPLogFileWriter.statusWriter(status, str(result[1]) + ' [1084][5009]')
19931997 # return 0
19941998
1995- command = 'chown %s:%s %s' % (website .externalApp , website .externalApp , status )
1996- ProcessUtilities .executioner (command )
1997-
1998- command = 'chown %s:%s %s' % (website .externalApp , website .externalApp , result [2 ])
1999- ProcessUtilities .executioner (command )
20001999
20012000 execPath = "sudo nice -n 10 /usr/local/CyberCP/bin/python " + virtualHostUtilities .cyberPanel + "/plogical/backupUtilities.py"
20022001 execPath = execPath + " startBackup --tempStoragePath " + tempStoragePath + " --backupName " \
20032002 + backupName + " --backupPath " + backupPath + ' --backupDomain ' + backupDomain + ' --metaPath %s' % (
2004- result [ 2 ] )
2003+ finalMetaPath )
20052004
20062005 output = ProcessUtilities .outputExecutioner (execPath , website .externalApp )
20072006
0 commit comments