Security Improvements.

This commit is contained in:
usmannasir
2018-01-18 22:37:12 +05:00
parent 4e58548bfe
commit 32b4de5ecd

View File

@@ -795,6 +795,25 @@ class preFlightsChecks:
print("###################################################################")
## fix permissions
command = "chmod -R 744 /usr/local/CyberCP"
res = subprocess.call(shlex.split(command))
if res == 1:
logging.InstallLog.writeToFile("[805] Permissions fix failed!")
else:
pass
## move static content
command = 'mv static /usr/local/lscp/cyberpanel'
cmd = shlex.split(command)
res = subprocess.call(cmd)
def install_unzip(self):
try: