Security Improvements.
This commit is contained in:
parent
4e58548bfe
commit
32b4de5ecd
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue