Skip to content
Snippets Groups Projects
Commit 6d8bce4e authored by Christoph Knote's avatar Christoph Knote
Browse files

Exported site specific loading information

parent 4b7a46b6
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment