From 32b4de5ecd3dc04cf7b0bd99e096ef50cf15814e Mon Sep 17 00:00:00 2001 From: usmannasir <01-134132-158@student.bahria.edu.pk> Date: Thu, 18 Jan 2018 22:37:12 +0500 Subject: [PATCH] Security Improvements. --- install/install.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/install/install.py b/install/install.py index f6e81babd..7030d20fe 100644 --- a/install/install.py +++ b/install/install.py @@ -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: