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 pwd
#import os
#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
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":
os.environ["KPP_HOME"] = KPP_HOME
os.environ["PATH"] += ":"+KPP_HOME+"/bin:"+KPP_HOME+"/boxmox/bin"
os.environ["BOXMOX_WORK_PATH"] = "/var/www/inBOX/boxmox/tmp"
\ No newline at end of file
#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":
# os.environ["KPP_HOME"] = KPP_HOME
# os.environ["PATH"] += ":"+KPP_HOME+"/bin:"+KPP_HOME+"/boxmox/bin"
# os.environ["BOXMOX_WORK_PATH"] = "/var/www/inBOX/boxmox/tmp"
#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment