Skip to content
Snippets Groups Projects
Commit e37272f6 authored by Robin Kara's avatar Robin Kara
Browse files

Disable ENV overwrites in _site_specific.py as they interfere with sane uwsgi env

parent b3e59a85
Branches
Tags
No related merge requests found
import os #import os
import pwd #import pwd
user=pwd.getpwuid(os.getuid()) # full /etc/passwd info #user=pwd.getpwuid(os.getuid()) # full /etc/passwd info
# possibly, www-data needs to know where BOXMOX is # possibly, www-data needs to know where BOXMOX is
KPP_HOME="/var/www/inBOX/boxmox/bin/boxmox" #KPP_HOME="/var/www/inBOX/boxmox/bin/boxmox"
#
if not 'KPP_HOME' in os.environ.keys() or user.pw_name == "www-data" or user.pw_name == "apache": #if not 'KPP_HOME' in os.environ.keys() or user.pw_name == "www-data" or user.pw_name == "apache":
os.environ["KPP_HOME"] = KPP_HOME # os.environ["KPP_HOME"] = KPP_HOME
os.environ["PATH"] += ":"+KPP_HOME+"/bin:"+KPP_HOME+"/boxmox/bin" # os.environ["PATH"] += ":"+KPP_HOME+"/bin:"+KPP_HOME+"/boxmox/bin"
os.environ["BOXMOX_WORK_PATH"] = "/var/www/inBOX/boxmox/tmp" # os.environ["BOXMOX_WORK_PATH"] = "/var/www/inBOX/boxmox/tmp"
#
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment