mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
bug fix in template loading
This commit is contained in:
@@ -345,7 +345,7 @@ class BackupManager:
|
|||||||
def restoreSite(self, request=None, userID=None, data=None):
|
def restoreSite(self, request=None, userID=None, data=None):
|
||||||
path = os.path.join("/home", "backup")
|
path = os.path.join("/home", "backup")
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
proc = httpProc(request, 'backup/restore.html', 'restoreBackup')
|
proc = httpProc(request, 'backup/restore.html', None, 'restoreBackup')
|
||||||
return proc.render()
|
return proc.render()
|
||||||
else:
|
else:
|
||||||
all_files = []
|
all_files = []
|
||||||
@@ -969,7 +969,7 @@ class BackupManager:
|
|||||||
return HttpResponse(final_json)
|
return HttpResponse(final_json)
|
||||||
|
|
||||||
def remoteBackups(self, request, userID=None, data=None):
|
def remoteBackups(self, request, userID=None, data=None):
|
||||||
proc = httpProc(request, 'backup/remoteBackups.html', 'remoteBackups')
|
proc = httpProc(request, 'backup/remoteBackups.html', None, 'remoteBackups')
|
||||||
return proc.render()
|
return proc.render()
|
||||||
|
|
||||||
def submitRemoteBackups(self, userID=None, data=None):
|
def submitRemoteBackups(self, userID=None, data=None):
|
||||||
|
|||||||
@@ -1939,8 +1939,9 @@ 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, website.externalApp)
|
output = ProcessUtilities.outputExecutioner(execPath)
|
||||||
if output.find('[5009') > -1:
|
|
||||||
|
if output.find('[5009]') > -1:
|
||||||
logging.CyberCPLogFileWriter.writeToFile(output)
|
logging.CyberCPLogFileWriter.writeToFile(output)
|
||||||
writeToFile = open(schedulerPath, 'w')
|
writeToFile = open(schedulerPath, 'w')
|
||||||
writeToFile.writelines(output)
|
writeToFile.writelines(output)
|
||||||
@@ -1968,7 +1969,7 @@ def submitBackupCreation(tempStoragePath, backupName, backupPath, backupDomain):
|
|||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
output = ProcessUtilities.outputExecutioner(execPath, website.externalApp)
|
#output = ProcessUtilities.outputExecutioner(execPath, website.externalApp)
|
||||||
|
|
||||||
if output.find('1,None') > -1:
|
if output.find('1,None') > -1:
|
||||||
execPath = "sudo nice -n 10 /usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/backupUtilities.py"
|
execPath = "sudo nice -n 10 /usr/local/CyberCP/bin/python " + virtualHostUtilities.cyberPanel + "/plogical/backupUtilities.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user