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

Added BOXMOX work path

parent 4053ed56
No related branches found
No related tags found
No related merge requests found
......@@ -4,9 +4,11 @@ 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"
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
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