Closed marcoesters closed 2 months ago
When installing outside $HOME, the pkg installer installs as root. Constructor changes the ownership of the $PREFIX directory to $USER: https://github.com/conda/constructor/blob/58385ee6d58a2228ddbf8b40f2fe179a3e77b5ab/constructor/osx/run_installation.sh#L115
$HOME
root
$PREFIX
$USER
However, the installer creates additional files and directories outside of $PREFIX:
${HOME}/.conda
conda init
${HOME}/.bash_profile
${HOME}/.config/powershell
This PR fixes the ownership of those files and directories as well.
news
Let's double check SH vs BASH vs POSIX for that nice chunk of shell code :)
Description
When installing outside
$HOME
, the pkg installer installs asroot
. Constructor changes the ownership of the$PREFIX
directory to$USER
: https://github.com/conda/constructor/blob/58385ee6d58a2228ddbf8b40f2fe179a3e77b5ab/constructor/osx/run_installation.sh#L115However, the installer creates additional files and directories outside of
$PREFIX
:${HOME}/.conda
conda init
, e.g.,${HOME}/.bash_profile
or${HOME}/.config/powershell
This PR fixes the ownership of those files and directories as well.
Checklist - did you ...
news
directory (using the template) for the next release's release notes?