diff --git a/install/install.py b/install/install.py index 7aefdb26f..939712e28 100755 --- a/install/install.py +++ b/install/install.py @@ -661,6 +661,9 @@ class preFlightsChecks: command = 'chmod 600 /usr/local/CyberCP/plogical/adminPass.py' preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + command = "find /usr/local/CyberCP/ -name '*.pyc' -delete" + preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR) + def install_unzip(self): self.stdOut("Install unzip") try: diff --git a/plogical/upgrade.py b/plogical/upgrade.py index c61403fdb..a6eaf4355 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1662,6 +1662,10 @@ CSRF_COOKIE_SECURE = True command = 'chmod 600 /usr/local/CyberCP/plogical/adminPass.py' Upgrade.executioner(command, 0) + command = "find /usr/local/CyberCP/ -name '*.pyc' -delete" + Upgrade.executioner(command, 0) + + Upgrade.stdOut("Permissions updated.") except BaseException as msg: