Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 04c2d3f

Browse files
authored
Resolve issue with rvm creating a gid that conflicts with id syncing (microsoft/vscode-remote-release#5949) (#1188)
1 parent 3b0bb71 commit 04c2d3f

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

containers/codespaces-linux/.devcontainer/library-scripts/ruby-debian.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ else
215215
DEFAULT_GEMS=""
216216
fi
217217
fi
218+
# Create rvm group as a system group to reduce the odds of conflict with local user UIDs
219+
if ! cat /etc/group | grep -e "^rvm:" > /dev/null 2>&1; then
220+
groupadd -r rvm
221+
fi
222+
# Install rvm
218223
curl -sSL https://get.rvm.io | bash -s stable --ignore-dotfiles ${RVM_INSTALL_ARGS} --with-default-gems="${DEFAULT_GEMS}" 2>&1
219224
usermod -aG rvm ${USERNAME}
220225
su ${USERNAME} -c ". /usr/local/rvm/scripts/rvm && rvm fix-permissions system"

containers/ruby/.devcontainer/library-scripts/ruby-debian.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ else
215215
DEFAULT_GEMS=""
216216
fi
217217
fi
218+
# Create rvm group as a system group to reduce the odds of conflict with local user UIDs
219+
if ! cat /etc/group | grep -e "^rvm:" > /dev/null 2>&1; then
220+
groupadd -r rvm
221+
fi
222+
# Install rvm
218223
curl -sSL https://get.rvm.io | bash -s stable --ignore-dotfiles ${RVM_INSTALL_ARGS} --with-default-gems="${DEFAULT_GEMS}" 2>&1
219224
usermod -aG rvm ${USERNAME}
220225
su ${USERNAME} -c ". /usr/local/rvm/scripts/rvm && rvm fix-permissions system"

script-library/ruby-debian.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ else
215215
DEFAULT_GEMS=""
216216
fi
217217
fi
218+
# Create rvm group as a system group to reduce the odds of conflict with local user UIDs
219+
if ! cat /etc/group | grep -e "^rvm:" > /dev/null 2>&1; then
220+
groupadd -r rvm
221+
fi
222+
# Install rvm
218223
curl -sSL https://get.rvm.io | bash -s stable --ignore-dotfiles ${RVM_INSTALL_ARGS} --with-default-gems="${DEFAULT_GEMS}" 2>&1
219224
usermod -aG rvm ${USERNAME}
220225
su ${USERNAME} -c ". /usr/local/rvm/scripts/rvm && rvm fix-permissions system"

0 commit comments

Comments
 (0)