bug fix: backup creation

This commit is contained in:
Usman Nasir
2021-11-16 19:12:34 +05:00
parent c563325796
commit 8d3eac6b29
5 changed files with 22 additions and 19 deletions

View File

@@ -1854,10 +1854,7 @@ class WebsiteManager:
try:
statusFile = data['statusFile']
if (statusFile[:18] != "/home/cyberpanel/." or statusFile[:16] == "/home/cyberpanel" or statusFile[:4] == '/tmp' or statusFile[
:18] == '/usr/local/CyberCP') \
and statusFile != '/usr/local/CyberCP/CyberCP/settings.py' and statusFile.find(
'..') == -1 and statusFile != '/home/cyberpanel/.my.cnf' and statusFile != '/home/cyberpanel/.bashrc' and statusFile != '/home/cyberpanel/.bash_logout' and statusFile != '/home/cyberpanel/.profile':
if ACLManager.CheckStatusFilleLoc(statusFile):
pass
else:
data_ret = {'abort': 1, 'installStatus': 0, 'installationProgress': "100",