Commit 1cad0ba5 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

Set /opt/slapgrid as HOME

parent ab87a9cd
...@@ -682,7 +682,7 @@ class Partition(object): ...@@ -682,7 +682,7 @@ class Partition(object):
preexec_fn=lambda: dropPrivileges(uid, gid, logger=self.logger), preexec_fn=lambda: dropPrivileges(uid, gid, logger=self.logger),
cwd=self.instance_path, cwd=self.instance_path,
env=getCleanEnvironment(logger=self.logger, env=getCleanEnvironment(logger=self.logger,
home_path=pwd.getpwuid(uid).pw_dir), home_path=pwd.getpwuid(os.getuid()).pw_dir),
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
logger=self.logger) logger=self.logger)
...@@ -819,7 +819,7 @@ class Partition(object): ...@@ -819,7 +819,7 @@ class Partition(object):
preexec_fn=lambda: dropPrivileges(uid, gid, logger=self.logger), preexec_fn=lambda: dropPrivileges(uid, gid, logger=self.logger),
cwd=self.instance_path, cwd=self.instance_path,
env=getCleanEnvironment(logger=self.logger, env=getCleanEnvironment(logger=self.logger,
home_path=pwd.getpwuid(uid).pw_dir), home_path=pwd.getpwuid(os.getuid()).pw_dir),
stdout=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, stderr=subprocess.STDOUT,
logger=self.logger) logger=self.logger)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment