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

Added BOXMOX work path

parent 4053ed56
Branches
Tags
No related merge requests found
...@@ -4,9 +4,11 @@ import pwd ...@@ -4,9 +4,11 @@ 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/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": 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"
\ 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