aboutsummaryrefslogtreecommitdiff
path: root/src/oryx
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-06-15 19:53:43 +0300
committerGitHub <noreply@github.com>2022-06-15 19:53:43 +0300
commit0ed472aa25bd1a21acf431cbb85b7528ff0cf10a (patch)
tree7a7a2bb78f979fc62e79814250fb7e5a31426ee9 /src/oryx
parentbc30428c914785479148f999114494a6a1f603d0 (diff)
Fix permissions: add username:user_group (#50)
* add username:user_group * fix remaining permissions * add * * remove *
Diffstat (limited to 'src/oryx')
-rwxr-xr-xsrc/oryx/install.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/oryx/install.sh b/src/oryx/install.sh
index 5eeaf18..1f0f94d 100755
--- a/src/oryx/install.sh
+++ b/src/oryx/install.sh
@@ -127,7 +127,7 @@ if ! oryx --version > /dev/null ; then
updaterc "export ORYX_SDK_STORAGE_BASE_URL=https://oryx-cdn.microsoft.io && export ENABLE_DYNAMIC_INSTALL=true && DYNAMIC_INSTALL_ROOT_DIR=$ORYX_INSTALL_DIR && ORYX_PREFER_USER_INSTALLED_SDKS=true"
- chown -R :oryx "${ORYX_INSTALL_DIR}" "${BUILD_SCRIPT_GENERATOR}" "${ORYX}"
+ chown -R "${USERNAME}:oryx" "${ORYX_INSTALL_DIR}" "${BUILD_SCRIPT_GENERATOR}" "${ORYX}"
chmod -R g+r+w "${ORYX_INSTALL_DIR}" "${BUILD_SCRIPT_GENERATOR}" "${ORYX}"
find "${ORYX_INSTALL_DIR}" -type d | xargs -n 1 chmod g+s
find "${BUILD_SCRIPT_GENERATOR}" -type d | xargs -n 1 chmod g+s