diff --git a/plogical/upgrade.py b/plogical/upgrade.py index a6eaf4355..c24a276b2 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1662,8 +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) + pycsettings = '/usr/local/CyberCP/CyberCP/settings.pyc' + + if os.path.exists(pycsettings): + os.remove(pycsettings) Upgrade.stdOut("Permissions updated.")