Skip to content

Commit

Permalink
[debian] Introduce whitelist env option to the su command (Samsung#12937
Browse files Browse the repository at this point in the history
)

This commit introduces whitelist env option to the su command.

ONE-DCO-1.0-Signed-off-by: seongwoo <[email protected]>
  • Loading branch information
mhs4670go authored Apr 29, 2024
1 parent 4358a6a commit 597defa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/debian/compiler/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ set -e
# which causes invalid permission problem.
# e.g. When `pip` installs user packages, it proceeds based on $HOME.
# To proper installation, $HOME should be root.
su - $(whoami) -p -c '/usr/share/one/bin/one-prepare-venv' # $(whoami) = root
su - $(whoami) -w ONE_PREPVENV_TORCH_SOURCE -c '/usr/share/one/bin/one-prepare-venv' # $(whoami) = root

0 comments on commit 597defa

Please sign in to comment.