This repository was archived by the owner on Nov 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
codespaces-linux/.devcontainer/library-scripts
ruby/.devcontainer/library-scripts Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,11 @@ else
215
215
DEFAULT_GEMS=" "
216
216
fi
217
217
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
218
223
curl -sSL https://get.rvm.io | bash -s stable --ignore-dotfiles ${RVM_INSTALL_ARGS} --with-default-gems=" ${DEFAULT_GEMS} " 2>&1
219
224
usermod -aG rvm ${USERNAME}
220
225
su ${USERNAME} -c " . /usr/local/rvm/scripts/rvm && rvm fix-permissions system"
Original file line number Diff line number Diff line change @@ -215,6 +215,11 @@ else
215
215
DEFAULT_GEMS=" "
216
216
fi
217
217
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
218
223
curl -sSL https://get.rvm.io | bash -s stable --ignore-dotfiles ${RVM_INSTALL_ARGS} --with-default-gems=" ${DEFAULT_GEMS} " 2>&1
219
224
usermod -aG rvm ${USERNAME}
220
225
su ${USERNAME} -c " . /usr/local/rvm/scripts/rvm && rvm fix-permissions system"
Original file line number Diff line number Diff line change @@ -215,6 +215,11 @@ else
215
215
DEFAULT_GEMS=" "
216
216
fi
217
217
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
218
223
curl -sSL https://get.rvm.io | bash -s stable --ignore-dotfiles ${RVM_INSTALL_ARGS} --with-default-gems=" ${DEFAULT_GEMS} " 2>&1
219
224
usermod -aG rvm ${USERNAME}
220
225
su ${USERNAME} -c " . /usr/local/rvm/scripts/rvm && rvm fix-permissions system"
You can’t perform that action at this time.
0 commit comments