diff --git a/boxmox/_site_specific.py b/boxmox/_site_specific.py new file mode 100644 index 0000000000000000000000000000000000000000..18568bc0549a232ba0176a76be41e0a8205212a3 --- /dev/null +++ b/boxmox/_site_specific.py @@ -0,0 +1,12 @@ +import os +import pwd + +user=pwd.getpwuid(os.getuid()) # full /etc/passwd info + +# possibly, www-data needs to know where BOXMOX is +KPP_HOME="/var/www/inBOX/runbox/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" + \ No newline at end of file