diff options
author | Samruddhi Khandale <skhandale@microsoft.com> | 2022-06-15 19:53:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 19:53:43 +0300 |
commit | 0ed472aa25bd1a21acf431cbb85b7528ff0cf10a (patch) | |
tree | 7a7a2bb78f979fc62e79814250fb7e5a31426ee9 /src/python | |
parent | bc30428c914785479148f999114494a6a1f603d0 (diff) |
Fix permissions: add username:user_group (#50)
* add username:user_group
* fix remaining permissions
* add *
* remove *
Diffstat (limited to 'src/python')
-rwxr-xr-x | src/python/install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/install.sh b/src/python/install.sh index 1e3875b..355febc 100755 --- a/src/python/install.sh +++ b/src/python/install.sh @@ -362,7 +362,7 @@ if [ "${PYTHON_VERSION}" != "none" ]; then updaterc "if [[ \"\${PATH}\" != *\"${CURRENT_PATH}/bin\"* ]]; then export PATH=${CURRENT_PATH}/bin:\${PATH}; fi" - chown -R :python "${PYTHON_INSTALL_PATH}" + chown -R "${USERNAME}:python" "${PYTHON_INSTALL_PATH}" chmod -R g+r+w "${PYTHON_INSTALL_PATH}" find "${PYTHON_INSTALL_PATH}" -type d | xargs -n 1 chmod g+s fi @@ -412,7 +412,7 @@ if [ "${INSTALL_PYTHON_TOOLS}" = "true" ] && [ "${PYTHON_VERSION}" != "none" ]; updaterc "export PIPX_BIN_DIR=\"${PIPX_BIN_DIR}\"" updaterc "if [[ \"\${PATH}\" != *\"\${PIPX_BIN_DIR}\"* ]]; then export PATH=\"\${PATH}:\${PIPX_BIN_DIR}\"; fi" - chown -R :python "${PIPX_HOME}" + chown -R "${USERNAME}:python" "${PIPX_HOME}" chmod -R g+r+w "${PIPX_HOME}" find "${PIPX_HOME}" -type d | xargs -n 1 chmod g+s fi |