aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2022-06-15 00:46:21 +0300
committerGitHub <noreply@github.com>2022-06-15 00:46:21 +0300
commitdd7e7d65b65f2f1706d18402136bcbaecbf8c897 (patch)
tree1e7575e7bd9a09cb265b10fb0343705d48a17314
parent423b6d55420fe66e6e0bc4c2b5df254f7881d881 (diff)
add username:user_groupv0.0.1
-rw-r--r--src/anaconda/install.sh2
-rw-r--r--src/dotnet/install.sh2
-rw-r--r--src/go/install.sh2
-rw-r--r--src/hugo/install.sh2
-rw-r--r--src/java/install.sh2
-rw-r--r--src/node/install.sh2
-rwxr-xr-xsrc/oryx/install.sh2
-rw-r--r--src/php/install.sh2
-rwxr-xr-xsrc/python/install.sh2
-rw-r--r--src/ruby/install.sh2
-rw-r--r--src/rust/install.sh2
11 files changed, 11 insertions, 11 deletions
diff --git a/src/anaconda/install.sh b/src/anaconda/install.sh
index c9661d3..750077e 100644
--- a/src/anaconda/install.sh
+++ b/src/anaconda/install.sh
@@ -80,7 +80,7 @@ if ! conda --version &> /dev/null ; then
check_packages wget ca-certificates
mkdir -p $CONDA_DIR
- chown -R :conda "${CONDA_DIR}"
+ chown -R "${USERNAME}:conda" "${CONDA_DIR}"
chmod -R g+r+w "${CONDA_DIR}"
find "${CONDA_DIR}" -type d | xargs -n 1 chmod g+s
diff --git a/src/dotnet/install.sh b/src/dotnet/install.sh
index 9484bbe..5f1dc93 100644
--- a/src/dotnet/install.sh
+++ b/src/dotnet/install.sh
@@ -419,7 +419,7 @@ else
install_using_dotnet_releases_url "${DOTNET_SDK_OR_RUNTIME}"
- chown -R :dotnet "${TARGET_DOTNET_ROOT}"
+ chown -R "${USERNAME}:dotnet" "${TARGET_DOTNET_ROOT}"
chmod -R g+r+w "${TARGET_DOTNET_ROOT}"
find "${TARGET_DOTNET_ROOT}" -type d | xargs -n 1 chmod g+s
fi
diff --git a/src/go/install.sh b/src/go/install.sh
index 96a1b38..e524e26 100644
--- a/src/go/install.sh
+++ b/src/go/install.sh
@@ -245,7 +245,7 @@ if [[ "\${PATH}" != *"\${GOROOT}/bin"* ]]; then export PATH="\${PATH}:\${GOROOT}
EOF
)"
-chown -R :golang "${TARGET_GOROOT}" "${TARGET_GOPATH}"
+chown -R "${USERNAME}:golang" "${TARGET_GOROOT}" "${TARGET_GOPATH}"
chmod -R g+r+w "${TARGET_GOROOT}" "${TARGET_GOPATH}"
find "${TARGET_GOROOT}" -type d | xargs -n 1 chmod g+s
find "${TARGET_GOPATH}" -type d | xargs -n 1 chmod g+s
diff --git a/src/hugo/install.sh b/src/hugo/install.sh
index 11b2d6c..f7ab7a2 100644
--- a/src/hugo/install.sh
+++ b/src/hugo/install.sh
@@ -114,7 +114,7 @@ if ! hugo version &> /dev/null ; then
updaterc "export HUGO_DIR=${installation_dir}"
- chown -R :hugo "${HUGO_DIR}"
+ chown -R "${USERNAME}:hugo" "${HUGO_DIR}"
chmod -R g+r+w "${HUGO_DIR}"
find "${HUGO_DIR}" -type d | xargs -n 1 chmod g+s
fi
diff --git a/src/java/install.sh b/src/java/install.sh
index 7918568..468d838 100644
--- a/src/java/install.sh
+++ b/src/java/install.sh
@@ -127,7 +127,7 @@ if [ ! -d "${SDKMAN_DIR}" ]; then
umask 0002
# Install SDKMAN
curl -sSL "https://get.sdkman.io?rcupdate=false" | bash
- chown -R :sdkman ${SDKMAN_DIR}
+ chown -R "${USERNAME}:sdkman" ${SDKMAN_DIR}
find ${SDKMAN_DIR} -type d | xargs -d '\n' chmod g+s
# Add sourcing of sdkman into bashrc/zshrc files (unless disabled)
updaterc "export SDKMAN_DIR=${SDKMAN_DIR}\n. \${SDKMAN_DIR}/bin/sdkman-init.sh"
diff --git a/src/node/install.sh b/src/node/install.sh
index bb71c64..b846007 100644
--- a/src/node/install.sh
+++ b/src/node/install.sh
@@ -121,7 +121,7 @@ fi
umask 0002
usermod -a -G nvm ${USERNAME}
mkdir -p ${NVM_DIR}
-chown :nvm ${NVM_DIR}
+chown "${USERNAME}:nvm" ${NVM_DIR}
chmod g+s ${NVM_DIR}
su ${USERNAME} -c "$(cat << EOF
set -e
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
diff --git a/src/php/install.sh b/src/php/install.sh
index 847f50f..1f3d9d9 100644
--- a/src/php/install.sh
+++ b/src/php/install.sh
@@ -197,7 +197,7 @@ rm -rf ${PHP_SRC_DIR}
updaterc "if [[ \"\${PATH}\" != *\"${CURRENT_DIR}\"* ]]; then export PATH=${CURRENT_DIR}/bin:\${PATH}; fi"
-chown -R :php "${PHP_DIR}"
+chown -R "${USERNAME}:php" "${PHP_DIR}"
chmod -R g+r+w "${PHP_DIR}"
find "${PHP_DIR}" -type d | xargs -n 1 chmod g+s
diff --git a/src/python/install.sh b/src/python/install.sh
index 1e3875b..7ab8b03 100755
--- a/src/python/install.sh
+++ b/src/python/install.sh
@@ -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
diff --git a/src/ruby/install.sh b/src/ruby/install.sh
index ade545c..cbe8270 100644
--- a/src/ruby/install.sh
+++ b/src/ruby/install.sh
@@ -277,7 +277,7 @@ if [ "${SKIP_RBENV_RBUILD}" != "true" ]; then
ln -s /usr/local/rvm/rubies/default/bin/ruby /usr/local/rvm/gems/default/bin
- chown -R :rvm "/home/${USERNAME}/.rbenv"
+ chown -R "${USERNAME}:rvm" "/home/${USERNAME}/.rbenv"
chmod -R g+r+w "/home/${USERNAME}/.rbenv"
find "/home/${USERNAME}/.rbenv" -type d | xargs -n 1 chmod g+s
fi
diff --git a/src/rust/install.sh b/src/rust/install.sh
index 07a36a7..be52fd3 100644
--- a/src/rust/install.sh
+++ b/src/rust/install.sh
@@ -147,7 +147,7 @@ if ! cat /etc/group | grep -e "^rustlang:" > /dev/null 2>&1; then
fi
usermod -a -G rustlang "${USERNAME}"
mkdir -p "${CARGO_HOME}" "${RUSTUP_HOME}"
-chown :rustlang "${RUSTUP_HOME}" "${CARGO_HOME}"
+chown "${USERNAME}:rustlang" "${RUSTUP_HOME}" "${CARGO_HOME}"
chmod g+r+w+s "${RUSTUP_HOME}" "${CARGO_HOME}"
if [ "${RUST_VERSION}" = "none" ] || type rustup > /dev/null 2>&1; then